pub struct EmailInvite {
pub token: String,
pub email: String,
pub by: Option<String>,
pub expires: DateTime<Utc>,
}Expand description
An email invite waiting to be accepted, as the group’s admins see it.
Fields§
§token: String§email: String§by: Option<String>Email of the admin who sent it.
expires: DateTime<Utc>Implementations§
Source§impl EmailInvite
impl EmailInvite
pub fn from_json(json: &Value) -> EmailInvite
Trait Implementations§
Source§impl Clone for EmailInvite
impl Clone for EmailInvite
Source§impl Debug for EmailInvite
impl Debug for EmailInvite
Source§impl<'de> Deserialize<'de> for EmailInvite
impl<'de> Deserialize<'de> for EmailInvite
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Forget for EmailInvite
impl Freeze for EmailInvite
impl RefUnwindSafe for EmailInvite
impl Send for EmailInvite
impl Sync for EmailInvite
impl Unpin for EmailInvite
impl UnsafeUnpin for EmailInvite
impl UnwindSafe for EmailInvite
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