pub enum UnexpectedFields {
Remove,
Keep,
}Expand description
Whether the fields the OCPI schema does not define are removed.
A tariff’s version can be inferred from which fields are present, so removing a field can change what a later inference concludes.
Variants§
Trait Implementations§
Source§impl Clone for UnexpectedFields
impl Clone for UnexpectedFields
Source§fn clone(&self) -> UnexpectedFields
fn clone(&self) -> UnexpectedFields
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 moreimpl Copy for UnexpectedFields
Source§impl Debug for UnexpectedFields
impl Debug for UnexpectedFields
impl Eq for UnexpectedFields
Source§impl PartialEq for UnexpectedFields
impl PartialEq for UnexpectedFields
impl StructuralPartialEq for UnexpectedFields
Auto Trait Implementations§
impl Freeze for UnexpectedFields
impl RefUnwindSafe for UnexpectedFields
impl Send for UnexpectedFields
impl Sync for UnexpectedFields
impl Unpin for UnexpectedFields
impl UnsafeUnpin for UnexpectedFields
impl UnwindSafe for UnexpectedFields
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§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoCaveat for T
impl<T> IntoCaveat for T
Source§fn into_caveat<W>(self, warnings: Set<W>) -> Caveat<T, W>where
W: Warning,
fn into_caveat<W>(self, warnings: Set<W>) -> Caveat<T, W>where
W: Warning,
Any type can be converted to
Caveat<T> by supplying a list of Warnings.Source§fn into_infallible_caveat(self) -> Caveat<Self, Infallible>
fn into_infallible_caveat(self) -> Caveat<Self, Infallible>
If a
FromSchema is infallible a Caveat can be created using this method.