Struct MessageSchema
pub struct MessageSchema {
pub namespace: Option<String>,
pub name: String,
pub id: u8,
pub sync: Option<SyncDefaults>,
pub enums: Vec<EnumDef>,
pub fields: Vec<FieldSchema>,
}Expand description
One message type in a schema set.
Fields§
§namespace: Option<String>§name: String§id: u8§sync: Option<SyncDefaults>§enums: Vec<EnumDef>§fields: Vec<FieldSchema>Implementations§
§impl MessageSchema
impl MessageSchema
pub fn qualified_name(&self) -> String
pub fn qualified_name(&self) -> String
The qualified name used to derive the default message ID.
Trait Implementations§
§impl Clone for MessageSchema
impl Clone for MessageSchema
§fn clone(&self) -> MessageSchema
fn clone(&self) -> MessageSchema
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read more§impl Debug for MessageSchema
impl Debug for MessageSchema
§impl PartialEq for MessageSchema
impl PartialEq for MessageSchema
impl StructuralPartialEq for MessageSchema
Auto Trait Implementations§
impl Freeze for MessageSchema
impl RefUnwindSafe for MessageSchema
impl Send for MessageSchema
impl Sync for MessageSchema
impl Unpin for MessageSchema
impl UnsafeUnpin for MessageSchema
impl UnwindSafe for MessageSchema
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