#[non_exhaustive]pub struct UnknownSubmittedComponent {
pub kind: ComponentType,
pub id: Option<u32>,
}Expand description
A submitted component of a type this version does not know.
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 component’s type.
id: Option<u32>The component’s numeric ID.
Trait Implementations§
Source§impl Clone for UnknownSubmittedComponent
impl Clone for UnknownSubmittedComponent
Source§impl Debug for UnknownSubmittedComponent
impl Debug for UnknownSubmittedComponent
impl Eq for UnknownSubmittedComponent
impl StructuralPartialEq for UnknownSubmittedComponent
Auto Trait Implementations§
impl Freeze for UnknownSubmittedComponent
impl RefUnwindSafe for UnknownSubmittedComponent
impl Send for UnknownSubmittedComponent
impl Sync for UnknownSubmittedComponent
impl Unpin for UnknownSubmittedComponent
impl UnsafeUnpin for UnknownSubmittedComponent
impl UnwindSafe for UnknownSubmittedComponent
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