pub struct Invite {
pub email: String,
pub expires_at: DateTime<Utc>,
pub id: Uuid,
pub role: InviteRole,
pub token: Option<String>,
}Expand description
Invite
JSON schema
{
"title": "Invite",
"type": "object",
"required": [
"email",
"expires_at",
"id",
"role"
],
"properties": {
"email": {
"type": "string"
},
"expires_at": {
"type": "string",
"format": "date-time"
},
"id": {
"type": "string",
"format": "uuid"
},
"role": {
"type": "string",
"enum": [
"admin",
"member"
]
},
"token": {
"type": [
"string",
"null"
]
}
}
}Fields§
§email: String§expires_at: DateTime<Utc>§id: Uuid§role: InviteRole§token: Option<String>Trait Implementations§
Source§impl<'de> Deserialize<'de> for Invite
impl<'de> Deserialize<'de> for Invite
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<Invite, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<Invite, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Serialize for Invite
impl Serialize for Invite
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
Auto Trait Implementations§
impl Freeze for Invite
impl RefUnwindSafe for Invite
impl Send for Invite
impl Sync for Invite
impl Unpin for Invite
impl UnsafeUnpin for Invite
impl UnwindSafe for Invite
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more