pub struct PlatformRequest {
pub parent: Option<Option<Box<NestedPlatformRequest>>>,
pub name: String,
pub slug: String,
pub manufacturer: Option<Option<Box<InventoryItemRequestManufacturer>>>,
pub config_template: Option<Option<Box<DeviceRoleRequestConfigTemplate>>>,
pub description: Option<String>,
pub owner: Option<Option<Box<AsnRangeRequestOwner>>>,
pub comments: Option<String>,
pub tags: Option<Vec<NestedTagRequest>>,
pub custom_fields: Option<HashMap<String, Value>>,
}Expand description
PlatformRequest : Base serializer class for models inheriting from NestedGroupModel.
Fields§
§parent: Option<Option<Box<NestedPlatformRequest>>>§name: String§slug: String§manufacturer: Option<Option<Box<InventoryItemRequestManufacturer>>>§config_template: Option<Option<Box<DeviceRoleRequestConfigTemplate>>>§description: Option<String>§owner: Option<Option<Box<AsnRangeRequestOwner>>>§comments: Option<String>§custom_fields: Option<HashMap<String, Value>>Implementations§
Source§impl PlatformRequest
impl PlatformRequest
Sourcepub fn new(name: String, slug: String) -> PlatformRequest
pub fn new(name: String, slug: String) -> PlatformRequest
Base serializer class for models inheriting from NestedGroupModel.
Trait Implementations§
Source§impl Clone for PlatformRequest
impl Clone for PlatformRequest
Source§fn clone(&self) -> PlatformRequest
fn clone(&self) -> PlatformRequest
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 PlatformRequest
impl Debug for PlatformRequest
Source§impl Default for PlatformRequest
impl Default for PlatformRequest
Source§fn default() -> PlatformRequest
fn default() -> PlatformRequest
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for PlatformRequest
impl<'de> Deserialize<'de> for PlatformRequest
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 PlatformRequest
impl PartialEq for PlatformRequest
Source§fn eq(&self, other: &PlatformRequest) -> bool
fn eq(&self, other: &PlatformRequest) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for PlatformRequest
impl Serialize for PlatformRequest
impl StructuralPartialEq for PlatformRequest
Auto Trait Implementations§
impl Freeze for PlatformRequest
impl RefUnwindSafe for PlatformRequest
impl Send for PlatformRequest
impl Sync for PlatformRequest
impl Unpin for PlatformRequest
impl UnsafeUnpin for PlatformRequest
impl UnwindSafe for PlatformRequest
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