pub struct Source { /* private fields */ }Expand description
One configuration source declaration.
Implementations§
Source§impl Source
impl Source
pub fn parse(input: &str) -> Result<Self, ParseError>
pub fn source(&self) -> &str
pub fn source_mut(&mut self) -> &mut String
pub fn set_source(&mut self, source: impl Into<String>)
pub fn options(&self) -> &Options
pub fn options_mut(&mut self) -> &mut Options
pub fn set_options(&mut self, options: Options)
pub fn set_option<K: Into<String>, V: Into<OptionValue>>( &mut self, key: K, value: V, )
pub fn resource(&self) -> &str
pub fn resource_mut(&mut self) -> &mut String
pub fn set_resource(&mut self, resource: impl Into<String>)
pub fn skip_errors(&self) -> bool
pub fn set_skip_errors(&mut self, skip_errors: bool)
pub fn resource_colon(&self) -> bool
pub fn set_resource_colon(&mut self, resource_colon: bool)
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Source
impl<'de> Deserialize<'de> for Source
Source§fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
Deserialize this value from the given Serde deserializer. Read more
Source§impl From<Source> for SourceBuilder
impl From<Source> for SourceBuilder
impl StructuralPartialEq for Source
Auto Trait Implementations§
impl Freeze for Source
impl RefUnwindSafe for Source
impl Send for Source
impl Sync for Source
impl Unpin for Source
impl UnsafeUnpin for Source
impl UnwindSafe for Source
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