pub struct Platform {Show 18 fields
pub id: Option<i32>,
pub url: Option<String>,
pub display_url: Option<String>,
pub display: Option<String>,
pub parent: Option<Option<Box<NestedPlatform>>>,
pub name: String,
pub slug: String,
pub manufacturer: Option<Option<Box<BriefManufacturer>>>,
pub config_template: Option<Option<Box<BriefConfigTemplate>>>,
pub description: Option<String>,
pub comments: Option<String>,
pub tags: Option<Vec<NestedTag>>,
pub custom_fields: Option<HashMap<String, Value>>,
pub created: Option<Option<String>>,
pub last_updated: Option<Option<String>>,
pub device_count: Option<i32>,
pub virtualmachine_count: Option<i32>,
pub _depth: Option<i32>,
}Expand description
Platform : Extends PrimaryModelSerializer to include MPTT support.
Fields§
§id: Option<i32>§url: Option<String>§display_url: Option<String>§display: Option<String>§parent: Option<Option<Box<NestedPlatform>>>§name: String§slug: String§manufacturer: Option<Option<Box<BriefManufacturer>>>§config_template: Option<Option<Box<BriefConfigTemplate>>>§description: Option<String>§comments: Option<String>§custom_fields: Option<HashMap<String, Value>>§created: Option<Option<String>>§last_updated: Option<Option<String>>§device_count: Option<i32>§virtualmachine_count: Option<i32>§_depth: Option<i32>Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Platform
impl<'de> Deserialize<'de> for Platform
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 Platform
Auto Trait Implementations§
impl Freeze for Platform
impl RefUnwindSafe for Platform
impl Send for Platform
impl Sync for Platform
impl Unpin for Platform
impl UnwindSafe for Platform
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