pub struct Record {
pub name: String,
pub fields: Map<Kind>,
pub instances: Map<Vec<Map<PropertyValue>>>,
pub order: Vec<String>,
}
Fields
name: String
fields: Map<Kind>
instances: Map<Vec<Map<PropertyValue>>>
order: Vec<String>
Implementations
sourceimpl Record
impl Record
pub fn variant_name(&self) -> Option<&str>
pub fn fields(&self, p1: &Section, doc: &TDoc<'_>) -> Result<Map<PropertyValue>>
pub fn add_instance(&mut self, p1: &Section, doc: &TDoc<'_>) -> Result<()>
pub fn create(&self, p1: &Section, doc: &TDoc<'_>) -> Result<PropertyValue>
pub fn fields_from_sub_section(
&self,
p1: &SubSection,
doc: &TDoc<'_>
) -> Result<Map<PropertyValue>>
pub fn from_p1(
p1_name: &str,
p1_header: &Header,
doc: &TDoc<'_>,
line_number: usize
) -> Result<Self>
Trait Implementations
sourceimpl<'de> Deserialize<'de> for Record
impl<'de> Deserialize<'de> for Record
sourcefn 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
sourceimpl PartialEq<Record> for Record
impl PartialEq<Record> for Record
impl StructuralPartialEq for Record
Auto Trait Implementations
impl RefUnwindSafe for Record
impl Send for Record
impl Sync for Record
impl Unpin for Record
impl UnwindSafe for Record
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more