Struct SchemaSet
pub struct SchemaSet {
pub messages: Vec<MessageSchema>,
}Expand description
All messages that share one wire contract.
Fields§
§messages: Vec<MessageSchema>Implementations§
§impl SchemaSet
impl SchemaSet
pub fn id_byte_present(&self) -> bool
pub fn id_byte_present(&self) -> bool
Whether frames carry the optional message-ID byte.
pub fn as_schema_ref(&self) -> SchemaRef<'_>
pub fn as_schema_ref(&self) -> SchemaRef<'_>
Borrow this schema set as a SchemaRef.
The nested field/message lists are built in owned alloc storage, while
all names and numeric properties borrow directly from self. Generated
no-alloc schemas should expose a const SchemaRef with borrowed lists.
pub fn storage_layout(&self, message_index: usize) -> Option<StorageLayout>
pub fn storage_layout(&self, message_index: usize) -> Option<StorageLayout>
Compute storage layout for a message (alloc convenience).
pub fn predictor_fingerprint(&self) -> u64
pub fn predictor_fingerprint(&self) -> u64
A deterministic fingerprint of custom predictor declarations.
It includes custom name, window, ordered params and version so both ends cannot silently disagree about which model they run.
Trait Implementations§
impl StructuralPartialEq for SchemaSet
Auto Trait Implementations§
impl Freeze for SchemaSet
impl RefUnwindSafe for SchemaSet
impl Send for SchemaSet
impl Sync for SchemaSet
impl Unpin for SchemaSet
impl UnsafeUnpin for SchemaSet
impl UnwindSafe for SchemaSet
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