#[non_exhaustive]pub struct EntityMetadata {
pub location: Option<CompactString>,
}Expand description
Extra data of an external scheduled event.
discord.js counterpart: APIGuildScheduledEventEntityMetadata (discord-api-types).
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.location: Option<CompactString>Where the event takes place (1-100 characters); required for external events.
Implementations§
Source§impl EntityMetadata
impl EntityMetadata
Sourcepub fn new(location: impl Into<CompactString>) -> Self
pub fn new(location: impl Into<CompactString>) -> Self
The metadata of an external event taking place at location (1-100 characters).
discord.js counterpart: the entityMetadata of GuildScheduledEventCreateOptions.
Trait Implementations§
Source§impl Clone for EntityMetadata
impl Clone for EntityMetadata
Source§impl Debug for EntityMetadata
impl Debug for EntityMetadata
Source§impl<'de> Deserialize<'de> for EntityMetadata
impl<'de> Deserialize<'de> for EntityMetadata
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
impl Eq for EntityMetadata
Source§impl Hash for EntityMetadata
impl Hash for EntityMetadata
Source§impl PartialEq for EntityMetadata
impl PartialEq for EntityMetadata
Source§impl Serialize for EntityMetadata
impl Serialize for EntityMetadata
impl StructuralPartialEq for EntityMetadata
Auto Trait Implementations§
impl Forget for EntityMetadata
impl Freeze for EntityMetadata
impl Move for EntityMetadata
impl RefUnwindSafe for EntityMetadata
impl Send for EntityMetadata
impl Sync for EntityMetadata
impl Unpin for EntityMetadata
impl UnsafeUnpin for EntityMetadata
impl UnwindSafe for EntityMetadata
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