pub struct CreateInvitePayload {
pub max_age: Option<u64>,
pub max_uses: Option<u64>,
pub temporary: Option<bool>,
pub unique: Option<bool>,
}Fields§
§max_age: Option<u64>Seconds. 0 = never expires.
max_uses: Option<u64>0 = unlimited.
temporary: Option<bool>If true, members joined via this invite get kicked when they disconnect (unless they’ve been given a role).
unique: Option<bool>Trait Implementations§
Source§impl Clone for CreateInvitePayload
impl Clone for CreateInvitePayload
Source§fn clone(&self) -> CreateInvitePayload
fn clone(&self) -> CreateInvitePayload
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 CreateInvitePayload
impl Debug for CreateInvitePayload
Source§impl Default for CreateInvitePayload
impl Default for CreateInvitePayload
Source§fn default() -> CreateInvitePayload
fn default() -> CreateInvitePayload
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for CreateInvitePayload
impl RefUnwindSafe for CreateInvitePayload
impl Send for CreateInvitePayload
impl Sync for CreateInvitePayload
impl Unpin for CreateInvitePayload
impl UnsafeUnpin for CreateInvitePayload
impl UnwindSafe for CreateInvitePayload
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