Struct archival::ObjectDefinition
source · pub struct ObjectDefinition {
pub name: String,
pub fields: HashMap<String, FieldType>,
pub field_order: Vec<String>,
pub template: Option<String>,
pub children: HashMap<String, ObjectDefinition>,
}Fields§
§name: String§fields: HashMap<String, FieldType>§field_order: Vec<String>§template: Option<String>§children: HashMap<String, ObjectDefinition>Implementations§
source§impl ObjectDefinition
impl ObjectDefinition
pub fn new( name: &str, definition: &Table ) -> Result<ObjectDefinition, Box<dyn Error>>
pub fn from_table( table: &Table ) -> Result<HashMap<String, ObjectDefinition>, Box<dyn Error>>
pub fn empty_object(&self) -> ObjectValues
Trait Implementations§
source§impl Clone for ObjectDefinition
impl Clone for ObjectDefinition
source§fn clone(&self) -> ObjectDefinition
fn clone(&self) -> ObjectDefinition
Returns a copy 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 moresource§impl Debug for ObjectDefinition
impl Debug for ObjectDefinition
source§impl<'de> Deserialize<'de> for ObjectDefinition
impl<'de> Deserialize<'de> for ObjectDefinition
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for ObjectDefinition
impl RefUnwindSafe for ObjectDefinition
impl Send for ObjectDefinition
impl Sync for ObjectDefinition
impl Unpin for ObjectDefinition
impl UnwindSafe for ObjectDefinition
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