pub enum SelectDefaultValue {
User(Id<UserMarker>),
Role(Id<RoleMarker>),
Channel(Id<ChannelMarker>),
}
Expand description
A default value for an auto-populated select menu.
Variants§
User(Id<UserMarker>)
Default user.
Role(Id<RoleMarker>)
Default role.
Channel(Id<ChannelMarker>)
Default channel.
Trait Implementations§
source§impl Clone for SelectDefaultValue
impl Clone for SelectDefaultValue
source§fn clone(&self) -> SelectDefaultValue
fn clone(&self) -> SelectDefaultValue
Returns a copy 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 SelectDefaultValue
impl Debug for SelectDefaultValue
source§impl<'de> Deserialize<'de> for SelectDefaultValue
impl<'de> Deserialize<'de> for SelectDefaultValue
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 Hash for SelectDefaultValue
impl Hash for SelectDefaultValue
source§impl Ord for SelectDefaultValue
impl Ord for SelectDefaultValue
source§fn cmp(&self, other: &SelectDefaultValue) -> Ordering
fn cmp(&self, other: &SelectDefaultValue) -> Ordering
1.21.0 · 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 SelectDefaultValue
impl PartialEq for SelectDefaultValue
source§impl PartialOrd for SelectDefaultValue
impl PartialOrd for SelectDefaultValue
source§impl Serialize for SelectDefaultValue
impl Serialize for SelectDefaultValue
impl Copy for SelectDefaultValue
impl Eq for SelectDefaultValue
impl StructuralPartialEq for SelectDefaultValue
Auto Trait Implementations§
impl Freeze for SelectDefaultValue
impl RefUnwindSafe for SelectDefaultValue
impl Send for SelectDefaultValue
impl Sync for SelectDefaultValue
impl Unpin for SelectDefaultValue
impl UnwindSafe for SelectDefaultValue
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)