pub(crate) struct RingMessageArgs {
pub(crate) ident: Ident,
pub(crate) generics: Generics,
pub(crate) data: Data<(), RingMessageField>,
pub(crate) type_id: Option<u64>,
pub(crate) domain: Option<String>,
pub(crate) k2k_routable: bool,
pub(crate) category: Option<String>,
}Expand description
Attributes for the RingMessage derive macro.
Fields§
§ident: Ident§generics: Generics§data: Data<(), RingMessageField>§type_id: Option<u64>Optional explicit message type ID. If domain is specified, this is the offset within the domain (0-99). If domain is not specified, this is the absolute type ID.
domain: Option<String>Optional domain for message classification. When specified, the final type ID = domain.base_type_id() + type_id.
k2k_routable: boolWhether this message is routable via K2K. When true, generates a K2KMessageRegistration for runtime discovery.
category: Option<String>Optional category for K2K routing groups. Multiple messages can share a category for grouped routing.
Trait Implementations§
Source§impl Debug for RingMessageArgs
impl Debug for RingMessageArgs
Source§impl FromDeriveInput for RingMessageArgs
impl FromDeriveInput for RingMessageArgs
Source§fn from_derive_input(__di: &DeriveInput) -> Result<Self>
fn from_derive_input(__di: &DeriveInput) -> Result<Self>
Create an instance from
syn::DeriveInput, or return an error.Auto Trait Implementations§
impl Freeze for RingMessageArgs
impl RefUnwindSafe for RingMessageArgs
impl !Send for RingMessageArgs
impl !Sync for RingMessageArgs
impl Unpin for RingMessageArgs
impl UnwindSafe for RingMessageArgs
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