Struct drawbridge::types::TreeEntry
source · pub struct TreeEntry<C = ()>where
C: ?Sized,{
pub meta: Meta,
pub custom: HashMap<String, Value>,
pub content: C,
}
Expand description
A directory entry
Note that this type is designed to be extensible. Therefore, the fields here represent the minimum required fields. Other fields may be present.
Fields§
§meta: Meta
The metadata of this entry
custom: HashMap<String, Value>
Custom fields
content: C
Implementations§
Trait Implementations§
source§impl<'de, C> Deserialize<'de> for Entry<C>
impl<'de, C> Deserialize<'de> for Entry<C>
source§fn deserialize<__D>(
__deserializer: __D
) -> Result<Entry<C>, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D
) -> Result<Entry<C>, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl<C> PartialEq for Entry<C>
impl<C> PartialEq for Entry<C>
source§impl<C> Serialize for Entry<C>where
C: ?Sized,
impl<C> Serialize for Entry<C>where
C: ?Sized,
source§fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl<C> Eq for Entry<C>
impl<C> StructuralPartialEq for Entry<C>where
C: ?Sized,
Auto Trait Implementations§
impl<C> Freeze for Entry<C>
impl<C> RefUnwindSafe for Entry<C>where
C: RefUnwindSafe + ?Sized,
impl<C> Send for Entry<C>
impl<C> Sync for Entry<C>
impl<C> Unpin for Entry<C>
impl<C> UnwindSafe for Entry<C>where
C: UnwindSafe + ?Sized,
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