#[non_exhaustive]pub struct UnknownComponent {
pub kind: ComponentType,
pub id: Option<i32>,
}Expand description
A component of a type this version of the library does not know about. Only the fields every component has are kept.
discord.js counterpart: none (a component type unknown to this version, kept as received).
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.kind: ComponentTypeThe raw component type.
id: Option<i32>The component’s numeric identifier.
Trait Implementations§
Source§impl Clone for UnknownComponent
impl Clone for UnknownComponent
impl Copy for UnknownComponent
Source§impl Debug for UnknownComponent
impl Debug for UnknownComponent
impl Eq for UnknownComponent
Source§impl Hash for UnknownComponent
impl Hash for UnknownComponent
Source§impl PartialEq for UnknownComponent
impl PartialEq for UnknownComponent
Source§impl Serialize for UnknownComponent
impl Serialize for UnknownComponent
impl StructuralPartialEq for UnknownComponent
Auto Trait Implementations§
impl Freeze for UnknownComponent
impl RefUnwindSafe for UnknownComponent
impl Send for UnknownComponent
impl Sync for UnknownComponent
impl Unpin for UnknownComponent
impl UnsafeUnpin for UnknownComponent
impl UnwindSafe for UnknownComponent
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