pub struct BriefPlatform {
pub id: Option<i32>,
pub url: Option<String>,
pub display: Option<String>,
pub name: String,
pub slug: String,
pub description: Option<String>,
pub device_count: Option<i32>,
pub virtualmachine_count: Option<i32>,
pub _depth: Option<i32>,
}Expand description
BriefPlatform : Extends PrimaryModelSerializer to include MPTT support.
Fields§
§id: Option<i32>§url: Option<String>§display: Option<String>§name: String§slug: String§description: Option<String>§device_count: Option<i32>§virtualmachine_count: Option<i32>§_depth: Option<i32>Implementations§
Source§impl BriefPlatform
impl BriefPlatform
Sourcepub fn new(name: String, slug: String) -> BriefPlatform
pub fn new(name: String, slug: String) -> BriefPlatform
Extends PrimaryModelSerializer to include MPTT support.
Trait Implementations§
Source§impl Clone for BriefPlatform
impl Clone for BriefPlatform
Source§fn clone(&self) -> BriefPlatform
fn clone(&self) -> BriefPlatform
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 BriefPlatform
impl Debug for BriefPlatform
Source§impl Default for BriefPlatform
impl Default for BriefPlatform
Source§fn default() -> BriefPlatform
fn default() -> BriefPlatform
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for BriefPlatform
impl<'de> Deserialize<'de> for BriefPlatform
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 BriefPlatform
impl PartialEq for BriefPlatform
Source§impl Serialize for BriefPlatform
impl Serialize for BriefPlatform
impl StructuralPartialEq for BriefPlatform
Auto Trait Implementations§
impl Freeze for BriefPlatform
impl RefUnwindSafe for BriefPlatform
impl Send for BriefPlatform
impl Sync for BriefPlatform
impl Unpin for BriefPlatform
impl UnwindSafe for BriefPlatform
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