pub struct CompositeDef {
pub name: String,
pub fields: Vec<CompositeField>,
pub description: Option<String>,
pub semantic_type: Option<String>,
}Expand description
Composite type definition.
Fields§
§name: StringType name.
fields: Vec<CompositeField>Fields within the composite.
description: Option<String>Description.
semantic_type: Option<String>Semantic type.
Implementations§
Source§impl CompositeDef
impl CompositeDef
Sourcepub fn encoded_length(&self) -> usize
pub fn encoded_length(&self) -> usize
Returns the encoded length in bytes.
Sourcepub fn add_field(&mut self, field: CompositeField)
pub fn add_field(&mut self, field: CompositeField)
Adds a field to the composite.
Trait Implementations§
Source§impl Clone for CompositeDef
impl Clone for CompositeDef
Source§fn clone(&self) -> CompositeDef
fn clone(&self) -> CompositeDef
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 CompositeDef
impl RefUnwindSafe for CompositeDef
impl Send for CompositeDef
impl Sync for CompositeDef
impl Unpin for CompositeDef
impl UnwindSafe for CompositeDef
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