Struct frankenstein::objects::ChatInviteLink
source · [−]pub struct ChatInviteLink {
pub invite_link: String,
pub creator: User,
pub creates_join_request: bool,
pub is_primary: bool,
pub is_revoked: bool,
pub name: Option<String>,
pub expire_date: Option<u64>,
pub member_limit: Option<u32>,
pub pending_join_request_count: Option<u32>,
}
Fields
invite_link: String
creator: User
creates_join_request: bool
is_primary: bool
is_revoked: bool
name: Option<String>
expire_date: Option<u64>
member_limit: Option<u32>
pending_join_request_count: Option<u32>
Implementations
sourceimpl ChatInviteLink
impl ChatInviteLink
sourcepub fn builder() -> ChatInviteLinkBuilder<((), (), (), (), (), (), (), (), ())>
pub fn builder() -> ChatInviteLinkBuilder<((), (), (), (), (), (), (), (), ())>
Create a builder for building ChatInviteLink
.
On the builder, call .invite_link(...)
, .creator(...)
, .creates_join_request(...)
, .is_primary(...)
, .is_revoked(...)
, .name(...)
(optional), .expire_date(...)
(optional), .member_limit(...)
(optional), .pending_join_request_count(...)
(optional) to set the values of the fields.
Finally, call .build()
to create the instance of ChatInviteLink
.
Trait Implementations
sourceimpl Clone for ChatInviteLink
impl Clone for ChatInviteLink
sourcefn clone(&self) -> ChatInviteLink
fn clone(&self) -> ChatInviteLink
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for ChatInviteLink
impl Debug for ChatInviteLink
sourceimpl<'de> Deserialize<'de> for ChatInviteLink
impl<'de> Deserialize<'de> for ChatInviteLink
sourcefn 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
sourceimpl PartialEq<ChatInviteLink> for ChatInviteLink
impl PartialEq<ChatInviteLink> for ChatInviteLink
sourcefn eq(&self, other: &ChatInviteLink) -> bool
fn eq(&self, other: &ChatInviteLink) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &ChatInviteLink) -> bool
fn ne(&self, other: &ChatInviteLink) -> bool
This method tests for !=
.
sourceimpl Serialize for ChatInviteLink
impl Serialize for ChatInviteLink
impl StructuralPartialEq for ChatInviteLink
Auto Trait Implementations
impl RefUnwindSafe for ChatInviteLink
impl Send for ChatInviteLink
impl Sync for ChatInviteLink
impl Unpin for ChatInviteLink
impl UnwindSafe for ChatInviteLink
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more