mirror of
https://github.com/versia-pub/activitypub.git
synced 2025-12-06 06:38:20 +01:00
feat: Lysand User struct
This commit is contained in:
parent
5db0f6a37a
commit
946804968e
1
src/lysand/mod.rs
Normal file
1
src/lysand/mod.rs
Normal file
|
|
@ -0,0 +1 @@
|
||||||
|
pub mod objects;
|
||||||
13
src/lysand/objects.rs
Normal file
13
src/lysand/objects.rs
Normal file
|
|
@ -0,0 +1,13 @@
|
||||||
|
use url::Url;
|
||||||
|
|
||||||
|
pub enum LysandType {
|
||||||
|
User
|
||||||
|
}
|
||||||
|
|
||||||
|
pub struct User {
|
||||||
|
public_key: String,
|
||||||
|
id: String,
|
||||||
|
uri: Url,
|
||||||
|
created_at: String,
|
||||||
|
display_name: Option<String>
|
||||||
|
}
|
||||||
|
|
@ -44,7 +44,7 @@ mod error;
|
||||||
mod http;
|
mod http;
|
||||||
mod objects;
|
mod objects;
|
||||||
mod utils;
|
mod utils;
|
||||||
//mod lysand;
|
mod lysand;
|
||||||
|
|
||||||
#[derive(Debug, Serialize, Deserialize)]
|
#[derive(Debug, Serialize, Deserialize)]
|
||||||
struct Response {
|
struct Response {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue