pub struct Section {
pub config: Config,
pub passages: Passages,
}Fields§
§config: Config§passages: PassagesImplementations§
Source§impl<'a> Section
impl<'a> Section
pub fn has_character(&self, character: &str) -> bool
pub fn state(&self) -> &Map<String, Value>
pub fn attribute(&'a self, name: &str) -> Option<&'a Option<AttributeConfig>>
pub fn on_exit(&self) -> &Option<SetCommand>
pub fn on_enter(&self) -> &Option<SetCommand>
pub fn passage(&'a self, name: &str) -> Option<&'a Passage>
pub fn namespace(&'a self) -> &'a str
pub fn params(&'a self, name: &str) -> Option<&'a Option<Params>>
pub fn character(&'a self, name: &str) -> Option<&'a Option<CharacterData>>
pub fn value(&'a self, name: &str) -> Option<&'a Value>
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Section
impl<'de> Deserialize<'de> for Section
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 StructuralPartialEq for Section
Auto Trait Implementations§
impl Freeze for Section
impl RefUnwindSafe for Section
impl Send for Section
impl Sync for Section
impl Unpin for Section
impl UnwindSafe for Section
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