pub struct CreateChannelInviteOptions {
pub max_uses: Option<u8>,
pub max_age: Option<Duration<Seconds>>,
pub unique: Option<bool>,
pub temporary: Option<bool>,
}Fields§
§max_uses: Option<u8>0-100, where 0 means unlimited.
max_age: Option<Duration<Seconds>>0-604800, duration until the invite expires where 0 means never.
unique: Option<bool>Whether to create a unique invite or reuse an existing one.
temporary: Option<bool>Whether members that joined via this invite should be kicked after disconnecting.
Implementations§
Source§impl CreateChannelInviteOptions
impl CreateChannelInviteOptions
Sourcepub fn builder() -> CreateChannelInviteOptionsBuilder
pub fn builder() -> CreateChannelInviteOptionsBuilder
Create an instance of CreateChannelInviteOptions using the builder syntax
Trait Implementations§
Source§impl Clone for CreateChannelInviteOptions
impl Clone for CreateChannelInviteOptions
Source§fn clone(&self) -> CreateChannelInviteOptions
fn clone(&self) -> CreateChannelInviteOptions
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 CreateChannelInviteOptions
impl Debug for CreateChannelInviteOptions
Source§impl Default for CreateChannelInviteOptions
impl Default for CreateChannelInviteOptions
Source§fn default() -> CreateChannelInviteOptions
fn default() -> CreateChannelInviteOptions
Returns the “default value” for a type. Read more
impl Copy for CreateChannelInviteOptions
Auto Trait Implementations§
impl Freeze for CreateChannelInviteOptions
impl RefUnwindSafe for CreateChannelInviteOptions
impl Send for CreateChannelInviteOptions
impl Sync for CreateChannelInviteOptions
impl Unpin for CreateChannelInviteOptions
impl UnsafeUnpin for CreateChannelInviteOptions
impl UnwindSafe for CreateChannelInviteOptions
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