pub struct SchemaFault {
pub place: String,
pub declared: HostType,
pub key: HostType,
}Expand description
A schema that declares something no value can be.
One kind of fault so far, and it is the one adding Map and Set to the
vocabulary introduced: a key or an element position may only hold a type
HostType::may_be_a_key allows. Everything else a HostType can say is
satisfiable by construction.
Fields§
§place: StringWhere in the module it was found, as a reader would name the place:
reviews.pull’s result, or reviews.PullRequest.labels.
declared: HostTypeThe whole declared type the fault was found in.
key: HostTypeThe part of it that is declared as a key and cannot be one.
Trait Implementations§
Source§impl Clone for SchemaFault
impl Clone for SchemaFault
Source§fn clone(&self) -> SchemaFault
fn clone(&self) -> SchemaFault
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 SchemaFault
impl Debug for SchemaFault
Source§impl Display for SchemaFault
impl Display for SchemaFault
impl Eq for SchemaFault
Source§impl PartialEq for SchemaFault
impl PartialEq for SchemaFault
Source§fn eq(&self, other: &SchemaFault) -> bool
fn eq(&self, other: &SchemaFault) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for SchemaFault
Auto Trait Implementations§
impl Freeze for SchemaFault
impl RefUnwindSafe for SchemaFault
impl Send for SchemaFault
impl Sync for SchemaFault
impl Unpin for SchemaFault
impl UnsafeUnpin for SchemaFault
impl UnwindSafe for SchemaFault
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