pub struct NestedLocation {
pub id: Option<i32>,
pub url: Option<String>,
pub display_url: Option<String>,
pub display: Option<String>,
pub name: String,
pub slug: String,
pub _depth: Option<i32>,
}Expand description
NestedLocation : Represents an object related through a ForeignKey field. On write, it accepts a primary key (PK) value or a dictionary of attributes which can be used to uniquely identify the related object. This class should be subclassed to return a full representation of the related object on read.
Fields§
§id: Option<i32>§url: Option<String>§display_url: Option<String>§display: Option<String>§name: String§slug: String§_depth: Option<i32>Implementations§
Source§impl NestedLocation
impl NestedLocation
Sourcepub fn new(name: String, slug: String) -> NestedLocation
pub fn new(name: String, slug: String) -> NestedLocation
Represents an object related through a ForeignKey field. On write, it accepts a primary key (PK) value or a dictionary of attributes which can be used to uniquely identify the related object. This class should be subclassed to return a full representation of the related object on read.
Trait Implementations§
Source§impl Clone for NestedLocation
impl Clone for NestedLocation
Source§fn clone(&self) -> NestedLocation
fn clone(&self) -> NestedLocation
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 NestedLocation
impl Debug for NestedLocation
Source§impl Default for NestedLocation
impl Default for NestedLocation
Source§fn default() -> NestedLocation
fn default() -> NestedLocation
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for NestedLocation
impl<'de> Deserialize<'de> for NestedLocation
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 NestedLocation
impl PartialEq for NestedLocation
Source§impl Serialize for NestedLocation
impl Serialize for NestedLocation
impl StructuralPartialEq for NestedLocation
Auto Trait Implementations§
impl Freeze for NestedLocation
impl RefUnwindSafe for NestedLocation
impl Send for NestedLocation
impl Sync for NestedLocation
impl Unpin for NestedLocation
impl UnwindSafe for NestedLocation
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