pub struct DirectiveData {
pub keyword: String,
pub separator: Separator,
pub value: String,
pub comment: Option<String>,
pub indent: String,
}Expand description
Data carried by a ConfigNode::Directive.
Fields§
§keyword: StringThe directive keyword (e.g. HostName, User, Include).
separator: SeparatorSeparator between keyword and value.
value: StringThe raw value string.
comment: Option<String>Optional trailing inline comment (without the #).
indent: StringThe leading whitespace/indentation before this directive.
Trait Implementations§
Source§impl Clone for DirectiveData
impl Clone for DirectiveData
Source§impl Debug for DirectiveData
impl Debug for DirectiveData
Source§impl<'de> Deserialize<'de> for DirectiveData
impl<'de> Deserialize<'de> for DirectiveData
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 DirectiveData
impl RefUnwindSafe for DirectiveData
impl Send for DirectiveData
impl Sync for DirectiveData
impl Unpin for DirectiveData
impl UnsafeUnpin for DirectiveData
impl UnwindSafe for DirectiveData
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