pub struct TomlFormat;Expand description
TOML format implementation
Trait Implementations§
Source§impl ConfigFormat for TomlFormat
impl ConfigFormat for TomlFormat
Source§fn parse_into_detailed(input: &str) -> Result<DetailedConfig, FormatError>
fn parse_into_detailed(input: &str) -> Result<DetailedConfig, FormatError>
Parse a string into DetailedConfig
Source§fn serialize(detailed_config: DetailedConfig) -> Result<String, FormatError>
fn serialize(detailed_config: DetailedConfig) -> Result<String, FormatError>
Serialize DetailedConfig to string
Source§fn format_name() -> MarkupFormat
fn format_name() -> MarkupFormat
Get the format name for error messages
fn parse_config(input: &str) -> Result<Config, FormatError>
Source§fn syntax_error(
message: impl Into<String>,
span: Option<Range<usize>>,
) -> FormatError
fn syntax_error( message: impl Into<String>, span: Option<Range<usize>>, ) -> FormatError
Helper to create syntax error for a specific format
Source§fn conversion_error(message: impl Into<String>) -> FormatError
fn conversion_error(message: impl Into<String>) -> FormatError
Helper to create conversion error for a specific format
Source§fn serialization_error(message: impl Into<String>) -> FormatError
fn serialization_error(message: impl Into<String>) -> FormatError
Helper to create serialization error for a specific format
fn try_into_detailed<T, F>( default_configs: DefaultConfigsWithSchema, dimensions: HashMap<String, DimensionInfo>, overrides: Vec<T>, split_overrides: F, ) -> Result<DetailedConfig, FormatError>
Auto Trait Implementations§
impl Freeze for TomlFormat
impl RefUnwindSafe for TomlFormat
impl Send for TomlFormat
impl Sync for TomlFormat
impl Unpin for TomlFormat
impl UnsafeUnpin for TomlFormat
impl UnwindSafe for TomlFormat
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T, UT> HandleAlloc<UT> for T
impl<T, UT> HandleAlloc<UT> for T
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more