pub enum ChannelLinkResponseMode {
User,
Guild,
}Expand description
ChannelLinkResponseMode
JSON schema
{
"type": "string",
"enum": [
"user",
"guild"
]
}Variants§
Trait Implementations§
Source§impl Clone for ChannelLinkResponseMode
impl Clone for ChannelLinkResponseMode
Source§fn clone(&self) -> ChannelLinkResponseMode
fn clone(&self) -> ChannelLinkResponseMode
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for ChannelLinkResponseMode
Source§impl Debug for ChannelLinkResponseMode
impl Debug for ChannelLinkResponseMode
Source§impl<'de> Deserialize<'de> for ChannelLinkResponseMode
impl<'de> Deserialize<'de> for ChannelLinkResponseMode
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 ChannelLinkResponseMode
impl Display for ChannelLinkResponseMode
impl Eq for ChannelLinkResponseMode
Source§impl FromStr for ChannelLinkResponseMode
impl FromStr for ChannelLinkResponseMode
Source§impl Hash for ChannelLinkResponseMode
impl Hash for ChannelLinkResponseMode
Source§impl Ord for ChannelLinkResponseMode
impl Ord for ChannelLinkResponseMode
Source§fn cmp(&self, other: &ChannelLinkResponseMode) -> Ordering
fn cmp(&self, other: &ChannelLinkResponseMode) -> Ordering
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
Source§impl PartialEq for ChannelLinkResponseMode
impl PartialEq for ChannelLinkResponseMode
Source§fn eq(&self, other: &ChannelLinkResponseMode) -> bool
fn eq(&self, other: &ChannelLinkResponseMode) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for ChannelLinkResponseMode
impl PartialOrd for ChannelLinkResponseMode
Source§impl Serialize for ChannelLinkResponseMode
impl Serialize for ChannelLinkResponseMode
impl StructuralPartialEq for ChannelLinkResponseMode
Source§impl TryFrom<&String> for ChannelLinkResponseMode
impl TryFrom<&String> for ChannelLinkResponseMode
Source§type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
Source§impl TryFrom<&str> for ChannelLinkResponseMode
impl TryFrom<&str> for ChannelLinkResponseMode
Source§type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
Source§impl TryFrom<String> for ChannelLinkResponseMode
impl TryFrom<String> for ChannelLinkResponseMode
Source§type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
Auto Trait Implementations§
impl Freeze for ChannelLinkResponseMode
impl RefUnwindSafe for ChannelLinkResponseMode
impl Send for ChannelLinkResponseMode
impl Sync for ChannelLinkResponseMode
impl Unpin for ChannelLinkResponseMode
impl UnsafeUnpin for ChannelLinkResponseMode
impl UnwindSafe for ChannelLinkResponseMode
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