pub struct NestedInventoryItem {
pub id: Option<Uuid>,
pub object_type: Option<String>,
pub url: Option<String>,
}Expand description
NestedInventoryItem : Add a tree_depth field to non-nested model serializers based on django-tree-queries.
Fields§
§id: Option<Uuid>§object_type: Option<String>§url: Option<String>Implementations§
Source§impl NestedInventoryItem
impl NestedInventoryItem
Sourcepub fn new() -> NestedInventoryItem
pub fn new() -> NestedInventoryItem
Add a tree_depth field to non-nested model serializers based on django-tree-queries.
Trait Implementations§
Source§impl Clone for NestedInventoryItem
impl Clone for NestedInventoryItem
Source§fn clone(&self) -> NestedInventoryItem
fn clone(&self) -> NestedInventoryItem
Returns a duplicate of the value. Read more
1.0.0 · 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 NestedInventoryItem
impl Debug for NestedInventoryItem
Source§impl Default for NestedInventoryItem
impl Default for NestedInventoryItem
Source§fn default() -> NestedInventoryItem
fn default() -> NestedInventoryItem
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for NestedInventoryItem
impl<'de> Deserialize<'de> for NestedInventoryItem
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 PartialEq for NestedInventoryItem
impl PartialEq for NestedInventoryItem
Source§impl Serialize for NestedInventoryItem
impl Serialize for NestedInventoryItem
impl StructuralPartialEq for NestedInventoryItem
Auto Trait Implementations§
impl Freeze for NestedInventoryItem
impl RefUnwindSafe for NestedInventoryItem
impl Send for NestedInventoryItem
impl Sync for NestedInventoryItem
impl Unpin for NestedInventoryItem
impl UnsafeUnpin for NestedInventoryItem
impl UnwindSafe for NestedInventoryItem
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