pub struct JoinLink {
pub code: String,
pub uses: u32,
pub max_uses: Option<u32>,
pub expires: DateTime<Utc>,
}Expand description
A join link, as the group’s admins see it. People join with it, and admins of other groups put their group inside this one with it.
Fields§
§code: String§uses: u32How many people or groups joined with it.
max_uses: Option<u32>How many it lets in before it is used up; None when any number can join
until it expires.
expires: DateTime<Utc>Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for JoinLink
impl<'de> Deserialize<'de> for JoinLink
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 JoinLink
impl RefUnwindSafe for JoinLink
impl Send for JoinLink
impl Sync for JoinLink
impl Unpin for JoinLink
impl UnsafeUnpin for JoinLink
impl UnwindSafe for JoinLink
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