pub struct Schema {
pub package: String,
pub id: u16,
pub version: u16,
pub semantic_version: String,
pub description: Option<String>,
pub byte_order: ByteOrder,
pub header_type: String,
pub types: Vec<TypeDef>,
pub messages: Vec<MessageDef>,
/* private fields */
}Expand description
Complete SBE schema definition.
Fields§
§package: StringPackage name (namespace).
id: u16Schema identifier.
version: u16Schema version.
semantic_version: StringSemantic version string.
description: Option<String>Schema description.
byte_order: ByteOrderByte order for encoding.
header_type: StringHeader type name.
types: Vec<TypeDef>Type definitions.
messages: Vec<MessageDef>Message definitions.
Implementations§
Source§impl Schema
impl Schema
Sourcepub fn build_type_map(&mut self)
pub fn build_type_map(&mut self)
Builds the type lookup map from the types vector.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Schema
impl RefUnwindSafe for Schema
impl Send for Schema
impl Sync for Schema
impl Unpin for Schema
impl UnwindSafe for Schema
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