pub struct CompositeField {
pub name: String,
pub type_name: String,
pub primitive_type: Option<PrimitiveType>,
pub offset: Option<usize>,
pub encoded_length: usize,
pub semantic_type: Option<String>,
pub description: Option<String>,
pub constant_value: Option<String>,
}Expand description
Field within a composite type.
Fields§
§name: StringField name.
type_name: StringType name (primitive or another type).
primitive_type: Option<PrimitiveType>Primitive type (if directly a primitive).
offset: Option<usize>Offset within the composite (optional, calculated if not specified).
encoded_length: usizeEncoded length in bytes.
semantic_type: Option<String>Semantic type.
description: Option<String>Description.
constant_value: Option<String>Constant value.
Implementations§
Trait Implementations§
Source§impl Clone for CompositeField
impl Clone for CompositeField
Source§fn clone(&self) -> CompositeField
fn clone(&self) -> CompositeField
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for CompositeField
impl RefUnwindSafe for CompositeField
impl Send for CompositeField
impl Sync for CompositeField
impl Unpin for CompositeField
impl UnwindSafe for CompositeField
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