#[non_exhaustive]pub struct MessageKey {
pub contract: &'static str,
pub version: u32,
pub message: &'static str,
pub kind: MessageKind,
}Expand description
The identity of one message type: contract, version, name and kind.
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.contract: &'static str§version: u32§message: &'static str§kind: MessageKindImplementations§
Trait Implementations§
Source§impl Clone for MessageKey
impl Clone for MessageKey
impl Copy for MessageKey
Source§impl Debug for MessageKey
impl Debug for MessageKey
impl Eq for MessageKey
Source§impl Hash for MessageKey
impl Hash for MessageKey
Source§impl PartialEq for MessageKey
impl PartialEq for MessageKey
impl StructuralPartialEq for MessageKey
Auto Trait Implementations§
impl Forget for MessageKey
impl Freeze for MessageKey
impl Move for MessageKey
impl RefUnwindSafe for MessageKey
impl Send for MessageKey
impl Sync for MessageKey
impl Unpin for MessageKey
impl UnsafeUnpin for MessageKeywhere
&'static str: UnsafeUnpin,
impl UnwindSafe for MessageKeywhere
&'static str: UnwindSafe,
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