pub struct Labels<Coll = Vec<String>>(pub Coll);
Expand description
Newtype to extract the node labels during deserialization.
Tuple Fields§
§0: Coll
Trait Implementations§
source§impl<'de, Coll: Deserialize<'de>> Deserialize<'de> for Labels<Coll>
impl<'de, Coll: Deserialize<'de>> Deserialize<'de> for Labels<Coll>
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
source§impl<Coll: PartialEq> PartialEq for Labels<Coll>
impl<Coll: PartialEq> PartialEq for Labels<Coll>
impl<Coll: Eq> Eq for Labels<Coll>
impl<Coll> StructuralPartialEq for Labels<Coll>
Auto Trait Implementations§
impl<Coll> RefUnwindSafe for Labels<Coll>where
Coll: RefUnwindSafe,
impl<Coll> Send for Labels<Coll>where
Coll: Send,
impl<Coll> Sync for Labels<Coll>where
Coll: Sync,
impl<Coll> Unpin for Labels<Coll>where
Coll: Unpin,
impl<Coll> UnwindSafe for Labels<Coll>where
Coll: UnwindSafe,
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