pub struct Inviter {
pub user_id: String,
pub user_email: Option<String>,
pub user_name: Option<String>,
pub user_avatar_url: Option<String>,
}Expand description
Information about the user creating the invitation (the inviter)
Fields§
§user_id: StringRequired: Your internal user ID for the inviter
user_email: Option<String>Optional: Email of the inviter
user_name: Option<String>Optional: Display name of the inviter
user_avatar_url: Option<String>Optional: Avatar URL of the inviter
Implementations§
Source§impl Inviter
impl Inviter
pub fn new(user_id: &str) -> Self
pub fn with_email(self, email: &str) -> Self
pub fn with_user_name(self, name: &str) -> Self
pub fn with_user_avatar_url(self, url: &str) -> Self
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Inviter
impl<'de> Deserialize<'de> for Inviter
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 Freeze for Inviter
impl RefUnwindSafe for Inviter
impl Send for Inviter
impl Sync for Inviter
impl Unpin for Inviter
impl UnwindSafe for Inviter
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