#[non_exhaustive]pub enum DynamicFieldValue {
String(CompactString),
Number(f64),
Media(ProfileMedia),
Unknown(DynamicFieldType),
}Expand description
The value of a DynamicField, by field type.
discord.js counterpart: none (the value of an APIApplicationIdentityProfileDynamicField, typed by its type).
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
String(CompactString)
Text.
Number(f64)
A number.
Media(ProfileMedia)
An image.
Unknown(DynamicFieldType)
A field type this version does not know; its value is not kept.
Implementations§
Source§impl DynamicFieldValue
impl DynamicFieldValue
Sourcepub const fn kind(&self) -> DynamicFieldType
pub const fn kind(&self) -> DynamicFieldType
Returns the field type.
discord.js counterpart: ApplicationIdentityProfileDynamicFieldType (discord-api-types).
Trait Implementations§
Source§impl Clone for DynamicFieldValue
impl Clone for DynamicFieldValue
Source§impl Debug for DynamicFieldValue
impl Debug for DynamicFieldValue
Source§impl PartialEq for DynamicFieldValue
impl PartialEq for DynamicFieldValue
impl StructuralPartialEq for DynamicFieldValue
Auto Trait Implementations§
impl Forget for DynamicFieldValue
impl Freeze for DynamicFieldValue
impl Move for DynamicFieldValue
impl RefUnwindSafe for DynamicFieldValue
impl Send for DynamicFieldValue
impl Sync for DynamicFieldValue
impl Unpin for DynamicFieldValue
impl UnsafeUnpin for DynamicFieldValue
impl UnwindSafe for DynamicFieldValue
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