pub struct StylePolicyDiagnostic {Show 21 fields
pub terminal_profile: String,
pub term: Option<String>,
pub colorterm: Option<String>,
pub degradation: &'static str,
pub breakpoint: &'static str,
pub fancy_borders: bool,
pub capability_true_color: bool,
pub capability_colors_256: bool,
pub capability_unicode_box_drawing: bool,
pub env_no_color: bool,
pub env_cass_respect_no_color: bool,
pub env_cass_no_color: bool,
pub resolved_color_profile: &'static str,
pub resolved_no_color: bool,
pub resolved_no_icons: bool,
pub resolved_no_gradient: bool,
pub policy_border_tier: &'static str,
pub policy_show_icons: bool,
pub policy_use_styling: bool,
pub policy_use_gradients: bool,
pub policy_render_content: bool,
}Expand description
Machine-readable diagnostic summary for a resolved style policy decision.
Fields§
§terminal_profile: StringTerminal capability profile id (xterm-256color, dumb, kitty, …).
term: Option<String>TERM from diagnostic input.
colorterm: Option<String>COLORTERM from diagnostic input.
degradation: &'static strCurrent degradation level label.
breakpoint: &'static strCurrent responsive breakpoint label.
fancy_borders: boolWhether rounded borders are user-enabled.
capability_true_color: boolCapability flag: supports truecolor.
capability_colors_256: boolCapability flag: supports 256-color palette.
capability_unicode_box_drawing: boolCapability flag: supports Unicode box drawing.
env_no_color: boolInput env axis: NO_COLOR.
env_cass_respect_no_color: boolInput env axis: CASS_RESPECT_NO_COLOR.
env_cass_no_color: boolInput env axis: CASS_NO_COLOR.
resolved_color_profile: &'static strResolved color profile after precedence rules.
resolved_no_color: boolResolved style options: no_color.
resolved_no_icons: boolResolved style options: no_icons.
resolved_no_gradient: boolResolved style options: no_gradient.
policy_border_tier: &'static strResolved policy: border tier.
policy_show_icons: boolResolved policy: icon rendering.
policy_use_styling: boolResolved policy: fg/bg styling.
policy_use_gradients: boolResolved policy: gradients.
policy_render_content: boolResolved policy: content rendering.
Trait Implementations§
Source§impl Clone for StylePolicyDiagnostic
impl Clone for StylePolicyDiagnostic
Source§fn clone(&self) -> StylePolicyDiagnostic
fn clone(&self) -> StylePolicyDiagnostic
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for StylePolicyDiagnostic
impl Debug for StylePolicyDiagnostic
Source§impl PartialEq for StylePolicyDiagnostic
impl PartialEq for StylePolicyDiagnostic
Source§fn eq(&self, other: &StylePolicyDiagnostic) -> bool
fn eq(&self, other: &StylePolicyDiagnostic) -> bool
self and other values to be equal, and is used by ==.Source§impl Serialize for StylePolicyDiagnostic
impl Serialize for StylePolicyDiagnostic
impl Eq for StylePolicyDiagnostic
impl StructuralPartialEq for StylePolicyDiagnostic
Auto Trait Implementations§
impl Freeze for StylePolicyDiagnostic
impl RefUnwindSafe for StylePolicyDiagnostic
impl Send for StylePolicyDiagnostic
impl Sync for StylePolicyDiagnostic
impl Unpin for StylePolicyDiagnostic
impl UnsafeUnpin for StylePolicyDiagnostic
impl UnwindSafe for StylePolicyDiagnostic
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>, which can then be
downcast into Box<dyn ConcreteType> where ConcreteType implements Trait.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Rc<Trait> (where Trait: Downcast) to Rc<Any>, which can then be further
downcast into Rc<ConcreteType> where ConcreteType implements Trait.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.Source§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.Source§impl<T> DowncastSend for T
impl<T> DowncastSend for T
Source§impl<T> DowncastSync for T
impl<T> DowncastSync for T
Source§impl<T> DowncastSync for T
impl<T> DowncastSync for T
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
key and return true if they are equal.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
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> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, _span: NoopSpan) -> Self
fn instrument(self, _span: NoopSpan) -> Self
Source§fn in_current_span(self) -> Self
fn in_current_span(self) -> 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>
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>
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