pub struct InviteCode {
pub id: usize,
pub created: usize,
pub owner: usize,
pub code: String,
pub is_used: bool,
}Fields§
§id: usize§created: usize§owner: usize§code: String§is_used: boolImplementations§
Source§impl InviteCode
impl InviteCode
Sourcepub fn new(owner: usize) -> Self
pub fn new(owner: usize) -> Self
Create a new InviteCode.
Trait Implementations§
Source§impl Clone for InviteCode
impl Clone for InviteCode
Source§fn clone(&self) -> InviteCode
fn clone(&self) -> InviteCode
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 InviteCode
impl Debug for InviteCode
Source§impl<'de> Deserialize<'de> for InviteCode
impl<'de> Deserialize<'de> for InviteCode
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 InviteCode
impl RefUnwindSafe for InviteCode
impl Send for InviteCode
impl Sync for InviteCode
impl Unpin for InviteCode
impl UnwindSafe for InviteCode
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