[][src]Struct coral::Entry

pub struct Entry {
    pub reason: Reason,
    pub package_id: String,
    pub target: Option<Target>,
    pub message: Option<Message>,
    pub profile: Option<Profile>,
    pub features: Option<Vec<String>>,
    pub filenames: Option<Vec<PathBuf>>,
    pub executable: Option<PathBuf>,
    pub fresh: Option<bool>,
    pub color: bool,
}

A top-level entry output by cargo

Fields

reason: Reasonpackage_id: Stringtarget: Option<Target>message: Option<Message>profile: Option<Profile>features: Option<Vec<String>>filenames: Option<Vec<PathBuf>>executable: Option<PathBuf>fresh: Option<bool>color: bool

Methods

impl Entry[src]

pub fn is_message(&self) -> bool[src]

Check if the Entry is a compiler message

pub fn is_artifact(&self) -> bool[src]

Check if the Entry is a compiler artifact

pub fn is_warning(&self) -> bool[src]

Check if a level exists and is a warning

pub fn is_error(&self) -> bool[src]

Check if a level exists and is an error

pub fn is_note(&self) -> bool[src]

Check if a level exists and is a note

pub fn is_help(&self) -> bool[src]

Check if a level exists and is a help

pub fn report(&self) -> Option<String>[src]

Get an error, warning, or info report from the Entry

pub fn report_width(&self, terminal_width: usize) -> Option<String>[src]

Same as Entry::report but uses a custom terminal width

pub fn rendered(&self) -> Option<&str>[src]

Get the Entry's render if it had one

Trait Implementations

impl Clone for Entry[src]

fn clone_from(&mut self, source: &Self)1.0.0[src]

Performs copy-assignment from source. Read more

impl PartialEq<Entry> for Entry[src]

impl Eq for Entry[src]

impl Debug for Entry[src]

impl Serialize for Entry[src]

impl<'de> Deserialize<'de> for Entry[src]

Auto Trait Implementations

impl Sync for Entry

impl Send for Entry

impl Unpin for Entry

impl RefUnwindSafe for Entry

impl UnwindSafe for Entry

Blanket Implementations

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: Deserialize<'de>, 
[src]