#[non_exhaustive]pub struct OutputStyle {
pub name: String,
}Expand description
Active output style. Kept as a struct (rather than collapsing to
Option<String>) so name can later evolve to an enum with a
Custom(String) variant without breaking downstream type signatures.
See ADR-0008.
Invariant: name is never empty. The Claude normalizer collapses
empty/null/missing names to Option::None at the parser boundary, so
every Some(OutputStyle) reaching a segment carries a non-empty name.
In-crate constructors should preserve this contract; lsm-srvz tracks
lifting it into the type system via a constructor.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.name: StringTrait Implementations§
Source§impl Clone for OutputStyle
impl Clone for OutputStyle
Source§fn clone(&self) -> OutputStyle
fn clone(&self) -> OutputStyle
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 OutputStyle
impl Debug for OutputStyle
Source§impl PartialEq for OutputStyle
impl PartialEq for OutputStyle
Source§fn eq(&self, other: &OutputStyle) -> bool
fn eq(&self, other: &OutputStyle) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for OutputStyle
impl StructuralPartialEq for OutputStyle
Auto Trait Implementations§
impl Freeze for OutputStyle
impl RefUnwindSafe for OutputStyle
impl Send for OutputStyle
impl Sync for OutputStyle
impl Unpin for OutputStyle
impl UnsafeUnpin for OutputStyle
impl UnwindSafe for OutputStyle
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.