Enum ptx_builder::builder::MessageFormat
source · pub enum MessageFormat {
Human,
Json {
render_diagnostics: bool,
short: bool,
ansi: bool,
},
Short,
}Expand description
Message format.
§Usage
use ptx_builder::prelude::*;
Builder::new(".")?
.set_message_format(MessageFormat::Short)
.build()?;Variants§
Human
Equivalent for cargo-build with --message-format=human flag
(default).
Json
Equivalent for cargo-build with --message-format=json flag
Fields
Short
Equivalent for cargo-build with --message-format=short flag
Trait Implementations§
source§impl Clone for MessageFormat
impl Clone for MessageFormat
source§fn clone(&self) -> MessageFormat
fn clone(&self) -> MessageFormat
Returns a copy 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 moresource§impl Debug for MessageFormat
impl Debug for MessageFormat
source§impl PartialEq for MessageFormat
impl PartialEq for MessageFormat
source§fn eq(&self, other: &MessageFormat) -> bool
fn eq(&self, other: &MessageFormat) -> bool
This method tests for
self and other values to be equal, and is used
by ==.impl Eq for MessageFormat
impl StructuralPartialEq for MessageFormat
Auto Trait Implementations§
impl Freeze for MessageFormat
impl RefUnwindSafe for MessageFormat
impl Send for MessageFormat
impl Sync for MessageFormat
impl Unpin for MessageFormat
impl UnwindSafe for MessageFormat
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§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit)§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.