#[non_exhaustive]pub enum SearchEmbedType {
Image,
Video,
Gif,
Sound,
Article,
Unknown(CompactString),
}Expand description
An embed type of a message search (broader than the embed types of messages).
discord.js counterpart: MessageSearchEmbedType (discord-api-types).
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Image
Image embeds.
Video
Video embeds.
Gif
GIF (gifv) embeds.
Sound
Sound embeds.
Article
Article embeds.
Unknown(CompactString)
A value that this version of the library does not know about.
Discord may add new values at any time. They are preserved here so that no
information is lost and deserialization never fails because of them. Prefer
SearchEmbedType::from over constructing this variant directly.
Implementations§
Source§impl SearchEmbedType
impl SearchEmbedType
Sourcepub fn as_str(&self) -> &str
pub fn as_str(&self) -> &str
Returns the string Discord uses for this value.
discord.js counterpart: the enum’s string value in discord-api-types.
Sourcepub const fn is_unknown(&self) -> bool
pub const fn is_unknown(&self) -> bool
Returns true for a value this version of the library does not know about.
discord.js counterpart: none (discord.js passes unknown strings through).
Trait Implementations§
Source§impl AsRef<str> for SearchEmbedType
impl AsRef<str> for SearchEmbedType
Source§impl Clone for SearchEmbedType
impl Clone for SearchEmbedType
Source§impl Debug for SearchEmbedType
impl Debug for SearchEmbedType
Source§impl<'de> Deserialize<'de> for SearchEmbedType
impl<'de> Deserialize<'de> for SearchEmbedType
Source§fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
Source§impl Display for SearchEmbedType
impl Display for SearchEmbedType
impl Eq for SearchEmbedType
Source§impl From<&str> for SearchEmbedType
impl From<&str> for SearchEmbedType
Source§impl Hash for SearchEmbedType
impl Hash for SearchEmbedType
Source§impl Ord for SearchEmbedType
impl Ord for SearchEmbedType
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Source§impl PartialEq for SearchEmbedType
impl PartialEq for SearchEmbedType
Source§impl PartialOrd for SearchEmbedType
impl PartialOrd for SearchEmbedType
Auto Trait Implementations§
impl Freeze for SearchEmbedType
impl RefUnwindSafe for SearchEmbedType
impl Send for SearchEmbedType
impl Sync for SearchEmbedType
impl Unpin for SearchEmbedType
impl UnsafeUnpin for SearchEmbedType
impl UnwindSafe for SearchEmbedType
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
§impl<T> ToCompactString for Twhere
T: Display,
impl<T> ToCompactString for Twhere
T: Display,
§fn try_to_compact_string(&self) -> Result<CompactString, ToCompactStringError>
fn try_to_compact_string(&self) -> Result<CompactString, ToCompactStringError>
ToCompactString::to_compact_string()] Read more§fn to_compact_string(&self) -> CompactString
fn to_compact_string(&self) -> CompactString
CompactString]. Read more