Skip to main content

ConsumerRead

Struct ConsumerRead 

Source
pub struct ConsumerRead {
    pub config: Config,
    pub issues: Vec<ConfigIssue>,
    pub parse_error: Option<Error>,
}
Expand description

A mars.toml read for its consumer configuration.

Fields§

§config: Config

Every table that is valid on its own. A table the file breaks is absent (models.a of models, or the whole of settings); package and the dependency tables come from the whole-file pass only when it succeeds.

§issues: Vec<ConfigIssue>

What was refused: a table that failed, [settings.tools] with a *, a min_mars_version that is not a requirement.

§parse_error: Option<Error>

The error of the whole-file pass, when it failed. Its text points at the line, and the CLI, which refuses the project’s own file whole, reports it as it always has.

Auto Trait Implementations§

§

impl Forget for ConsumerRead

§

impl Freeze for ConsumerRead

§

impl Move for ConsumerRead

§

impl RefUnwindSafe for ConsumerRead

§

impl Send for ConsumerRead
where RawVecInner: Send, NodeRef<Owned, String, Value, LeafOrInternal>: Send, BoxRaw<(String, Value)>: Send, &'static str: Send, RawTable<usize>: Send,

§

impl Sync for ConsumerRead
where RawVecInner: Sync, NodeRef<Owned, String, Value, LeafOrInternal>: Sync, BoxRaw<(String, Value)>: Sync, RawTable<usize>: Sync,

§

impl Unpin for ConsumerRead
where *const u8 is !null: Unpin, *const LeafNode<String, Value> is !null: Unpin, Box<(String, Value)>: Unpin, &'static str: Unpin,

§

impl UnsafeUnpin for ConsumerRead

§

impl UnwindSafe for ConsumerRead

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

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

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.