pub struct GeneratedLoggingOption { /* private fields */ }Expand description
One ordered generated logging option.
Implementations§
Source§impl GeneratedLoggingOption
impl GeneratedLoggingOption
Sourcepub fn new(
name: impl Into<String>,
value: GeneratedLoggingOptionValue,
) -> Result<Self, GenerationError>
pub fn new( name: impl Into<String>, value: GeneratedLoggingOptionValue, ) -> Result<Self, GenerationError>
Creates one option with a non-empty key and a string, number, or null value.
§Errors
Rejects an empty or NUL-bearing key and number spellings that are not exactly one YAML number scalar. No driver-specific option semantics are applied.
Sourcepub const fn value(&self) -> &GeneratedLoggingOptionValue
pub const fn value(&self) -> &GeneratedLoggingOptionValue
Returns the selected string, number, or null value.
Trait Implementations§
Source§impl Clone for GeneratedLoggingOption
impl Clone for GeneratedLoggingOption
Source§fn clone(&self) -> GeneratedLoggingOption
fn clone(&self) -> GeneratedLoggingOption
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for GeneratedLoggingOption
impl Debug for GeneratedLoggingOption
impl Eq for GeneratedLoggingOption
Source§impl PartialEq for GeneratedLoggingOption
impl PartialEq for GeneratedLoggingOption
impl StructuralPartialEq for GeneratedLoggingOption
Auto Trait Implementations§
impl Freeze for GeneratedLoggingOption
impl RefUnwindSafe for GeneratedLoggingOption
impl Send for GeneratedLoggingOption
impl Sync for GeneratedLoggingOption
impl Unpin for GeneratedLoggingOption
impl UnsafeUnpin for GeneratedLoggingOption
impl UnwindSafe for GeneratedLoggingOption
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