pub struct GeneratedLogging { /* private fields */ }Expand description
Explicit service logging configuration for generated output.
Implementations§
Source§impl GeneratedLogging
impl GeneratedLogging
Sourcepub fn new(
driver: GeneratedString,
options: Vec<GeneratedLoggingOption>,
) -> Result<Self, GenerationError>
pub fn new( driver: GeneratedString, options: Vec<GeneratedLoggingOption>, ) -> Result<Self, GenerationError>
Creates an explicit uninterpreted string driver and ordered unique-key options mapping.
An empty options vector is retained as options: {}. Driver and option values are not
normalized, defaulted, or interpreted for any provider.
§Errors
Rejects duplicate option keys.
Sourcepub const fn driver(&self) -> &GeneratedString
pub const fn driver(&self) -> &GeneratedString
Returns the exact uninterpreted string driver.
Sourcepub fn options(&self) -> &[GeneratedLoggingOption]
pub fn options(&self) -> &[GeneratedLoggingOption]
Returns options in generated mapping order.
Trait Implementations§
Source§impl Clone for GeneratedLogging
impl Clone for GeneratedLogging
Source§fn clone(&self) -> GeneratedLogging
fn clone(&self) -> GeneratedLogging
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 GeneratedLogging
impl Debug for GeneratedLogging
impl Eq for GeneratedLogging
Source§impl PartialEq for GeneratedLogging
impl PartialEq for GeneratedLogging
impl StructuralPartialEq for GeneratedLogging
Auto Trait Implementations§
impl Freeze for GeneratedLogging
impl RefUnwindSafe for GeneratedLogging
impl Send for GeneratedLogging
impl Sync for GeneratedLogging
impl Unpin for GeneratedLogging
impl UnsafeUnpin for GeneratedLogging
impl UnwindSafe for GeneratedLogging
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