pub struct CreateInvitationTarget {
pub target_type: CreateInvitationTargetType,
pub value: String,
pub name: Option<String>,
pub avatar_url: Option<String>,
}Expand description
Target for creating an invitation
Fields§
§target_type: CreateInvitationTargetType§value: StringTarget value: email address, phone number, or internal user ID
name: Option<String>Display name of the person being invited
avatar_url: Option<String>Avatar URL for the person being invited (for display in invitation lists)
Implementations§
Source§impl CreateInvitationTarget
impl CreateInvitationTarget
pub fn new(target_type: CreateInvitationTargetType, value: &str) -> Self
pub fn email(value: &str) -> Self
pub fn phone(value: &str) -> Self
pub fn internal(value: &str) -> Self
pub fn with_name(self, name: &str) -> Self
pub fn with_avatar_url(self, avatar_url: &str) -> Self
Trait Implementations§
Source§impl Clone for CreateInvitationTarget
impl Clone for CreateInvitationTarget
Source§fn clone(&self) -> CreateInvitationTarget
fn clone(&self) -> CreateInvitationTarget
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for CreateInvitationTarget
impl Debug for CreateInvitationTarget
Source§impl<'de> Deserialize<'de> for CreateInvitationTarget
impl<'de> Deserialize<'de> for CreateInvitationTarget
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 CreateInvitationTarget
impl RefUnwindSafe for CreateInvitationTarget
impl Send for CreateInvitationTarget
impl Sync for CreateInvitationTarget
impl Unpin for CreateInvitationTarget
impl UnwindSafe for CreateInvitationTarget
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