pub struct Entry { /* private fields */ }Implementations§
Source§impl Entry
impl Entry
pub fn to_ast_str_pretty(&mut self) -> Result<String, ReamError>
pub fn to_ast_str(&mut self) -> Result<String, ReamError>
Source§impl Entry
impl Entry
pub fn new(class: String, level: usize, parent_class: Option<String>) -> Self
pub fn resolve_downstream_ref( &mut self, downstream: &HashMap<String, Vec<VariableMap>>, ) -> Result<(), ReamError>
pub fn set_ref_key(&mut self, keys: Vec<String>)
pub fn ref_keys(&self) -> Vec<String>
pub fn get_schema(&self) -> EntrySchema
pub fn push_key(&mut self, key: String)
pub fn push_subentry(&mut self, subentry: Entry)
pub fn get_parent_class(&self) -> Option<String>
pub fn get_variable_values(&self) -> Vec<String>
pub fn class(&self) -> String
pub fn keys(&self) -> Vec<String>
pub fn variable_map(&self) -> VariableMap
pub fn insert_variable( &mut self, key: String, value: Value, ) -> Result<(), ReamError>
pub fn value(&self, key: &String) -> Option<&Value>
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Entry
impl<'de> Deserialize<'de> for Entry
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
impl Eq for Entry
impl StructuralPartialEq for Entry
Auto Trait Implementations§
impl Freeze for Entry
impl RefUnwindSafe for Entry
impl Send for Entry
impl Sync for Entry
impl Unpin for Entry
impl UnwindSafe for Entry
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