pub struct CreateInviteOptions { /* private fields */ }Expand description
Represents data that is sent to the create invite endpoint.
Implementations§
Source§impl CreateInviteOptions
impl CreateInviteOptions
pub fn new() -> Self
Sourcepub fn set_max_age(self, age: Duration) -> Self
pub fn set_max_age(self, age: Duration) -> Self
Sets the maximum age for this invite.
Sourcepub fn set_max_uses(self, uses: i32) -> Self
pub fn set_max_uses(self, uses: i32) -> Self
Sets the maximum # of uses for this invite.
Sourcepub fn set_temporary(self, temp: bool) -> Self
pub fn set_temporary(self, temp: bool) -> Self
Sets whether or not this invite should be temporary.
Sourcepub fn set_unique(self, unique: bool) -> Self
pub fn set_unique(self, unique: bool) -> Self
Sets whether or not this invite should be unique.
Trait Implementations§
Source§impl Clone for CreateInviteOptions
impl Clone for CreateInviteOptions
Source§fn clone(&self) -> CreateInviteOptions
fn clone(&self) -> CreateInviteOptions
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 CreateInviteOptions
impl Debug for CreateInviteOptions
Source§impl<'de> Deserialize<'de> for CreateInviteOptions
impl<'de> Deserialize<'de> for CreateInviteOptions
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 CreateInviteOptions
impl RefUnwindSafe for CreateInviteOptions
impl Send for CreateInviteOptions
impl Sync for CreateInviteOptions
impl Unpin for CreateInviteOptions
impl UnwindSafe for CreateInviteOptions
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