pub struct NestedTag {
pub id: Option<i32>,
pub url: Option<String>,
pub display_url: Option<String>,
pub display: Option<String>,
pub name: String,
pub slug: String,
pub color: Option<String>,
}Expand description
NestedTag : 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§color: Option<String>Implementations§
Source§impl NestedTag
impl NestedTag
Sourcepub fn new(name: String, slug: String) -> NestedTag
pub fn new(name: String, slug: String) -> NestedTag
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<'de> Deserialize<'de> for NestedTag
impl<'de> Deserialize<'de> for NestedTag
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 StructuralPartialEq for NestedTag
Auto Trait Implementations§
impl Freeze for NestedTag
impl RefUnwindSafe for NestedTag
impl Send for NestedTag
impl Sync for NestedTag
impl Unpin for NestedTag
impl UnwindSafe for NestedTag
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