pub enum DisplaySkip {
Always,
Never,
WhenInjected,
}Expand description
Whether a member should be hidden from the fallback display list.
The interpolated sentence on instructionDisplayNode is governed separately — a member may be referenced there regardless of its skip value.
Variants§
Always
The member is never shown in the fallback list. Use for purely structural fields like discriminators.
Never
The member is always shown in the fallback list. This is the default.
WhenInjected
The member is shown only when its value was not already surfaced elsewhere through the provide/inject graph. When the value was pulled via injection, the member is hidden as redundant; when nothing surfaced it, the member appears under its label as a backup.
Trait Implementations§
Source§impl Clone for DisplaySkip
impl Clone for DisplaySkip
Source§fn clone(&self) -> DisplaySkip
fn clone(&self) -> DisplaySkip
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 DisplaySkip
Source§impl Debug for DisplaySkip
impl Debug for DisplaySkip
Source§impl<'de> Deserialize<'de> for DisplaySkip
impl<'de> Deserialize<'de> for DisplaySkip
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for DisplaySkip
Source§impl PartialEq for DisplaySkip
impl PartialEq for DisplaySkip
Source§impl Serialize for DisplaySkip
impl Serialize for DisplaySkip
impl StructuralPartialEq for DisplaySkip
Auto Trait Implementations§
impl Freeze for DisplaySkip
impl RefUnwindSafe for DisplaySkip
impl Send for DisplaySkip
impl Sync for DisplaySkip
impl Unpin for DisplaySkip
impl UnsafeUnpin for DisplaySkip
impl UnwindSafe for DisplaySkip
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,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.