feat: Lysand User struct

This commit is contained in:
April John 2024-05-09 23:09:10 +02:00
parent 5db0f6a37a
commit 946804968e
Signed by: aprl
GPG key ID: BCB934A2909C5460
3 changed files with 15 additions and 1 deletions

1
src/lysand/mod.rs Normal file
View file

@ -0,0 +1 @@
pub mod objects;

13
src/lysand/objects.rs Normal file
View 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>
}

View file

@ -44,7 +44,7 @@ mod error;
mod http;
mod objects;
mod utils;
//mod lysand;
mod lysand;
#[derive(Debug, Serialize, Deserialize)]
struct Response {