pub struct InviteCode(pub String);Expand description
a short, unique identifier. knowing the code grants access to the invite’s target.
Tuple Fields§
§0: StringTrait Implementations§
Source§impl Clone for InviteCode
impl Clone for InviteCode
Source§impl ComposeSchema for InviteCode
impl ComposeSchema for InviteCode
Source§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
Source§impl Display for InviteCode
impl Display for InviteCode
impl Eq for InviteCode
Source§impl Hash for InviteCode
impl Hash for InviteCode
Source§impl Ord for InviteCode
impl Ord for InviteCode
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PaginationKey for InviteCode
impl PaginationKey for InviteCode
Source§impl PartialEq for InviteCode
impl PartialEq for InviteCode
Source§impl PartialOrd for InviteCode
impl PartialOrd for InviteCode
Source§impl PathParam for InviteCode
impl PathParam for InviteCode
fn from_path_param(s: &str) -> Result<Self, PathParamError>
Source§impl Serialize for InviteCode
impl Serialize for InviteCode
impl StructuralPartialEq for InviteCode
Auto Trait Implementations§
impl Freeze for InviteCode
impl RefUnwindSafe for InviteCode
impl Send for InviteCode
impl Sync for InviteCode
impl Unpin for InviteCode
impl UnsafeUnpin 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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
impl<T> CryptoSafe for T
impl<T> CryptoSafe for T
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> PartialSchema for Twhere
T: ComposeSchema + ?Sized,
impl<T> PartialSchema for Twhere
T: ComposeSchema + ?Sized,
impl<T> Read<Exclusive, BecauseExclusive> for Twhere
T: ?Sized,
Source§impl<T> ValidateIp for Twhere
T: ToString,
impl<T> ValidateIp for Twhere
T: ToString,
Source§fn validate_ipv4(&self) -> bool
fn validate_ipv4(&self) -> bool
Validates whether the given string is an IP V4
Source§fn validate_ipv6(&self) -> bool
fn validate_ipv6(&self) -> bool
Validates whether the given string is an IP V6
Source§fn validate_ip(&self) -> bool
fn validate_ip(&self) -> bool
Validates whether the given string is an IP