pub struct DetectionResult {
pub is_agent: bool,
pub detected_agent: Option<String>,
pub is_ci: bool,
pub detected_ci: Option<String>,
pub is_tty: bool,
pub no_color_set: bool,
pub override_mode: Option<OverrideMode>,
}Expand description
Detection result with diagnostics.
Fields§
§is_agent: boolWhether an agent environment was detected.
detected_agent: Option<String>The specific agent variable that was detected.
is_ci: boolWhether a CI environment was detected.
detected_ci: Option<String>The specific CI variable that was detected.
is_tty: boolWhether stdout is connected to a TTY.
no_color_set: boolWhether NO_COLOR environment variable is set.
override_mode: Option<OverrideMode>Any override mode that was specified.
Trait Implementations§
Source§impl Clone for DetectionResult
impl Clone for DetectionResult
Source§fn clone(&self) -> DetectionResult
fn clone(&self) -> DetectionResult
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for DetectionResult
impl RefUnwindSafe for DetectionResult
impl Send for DetectionResult
impl Sync for DetectionResult
impl Unpin for DetectionResult
impl UnwindSafe for DetectionResult
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