pub struct PatchedWritableLocationRequest {
pub name: Option<String>,
pub slug: Option<String>,
pub site: Option<Box<DeviceWithConfigContextRequestSite>>,
pub parent: Option<Option<i32>>,
pub status: Option<Status>,
pub tenant: Option<Option<Box<AsnRangeRequestTenant>>>,
pub facility: Option<String>,
pub description: Option<String>,
pub tags: Option<Vec<NestedTagRequest>>,
pub custom_fields: Option<HashMap<String, Value>>,
pub comments: Option<String>,
}Expand description
PatchedWritableLocationRequest : Extends PrimaryModelSerializer to include MPTT support.
Fields§
§name: Option<String>§slug: Option<String>§site: Option<Box<DeviceWithConfigContextRequestSite>>§parent: Option<Option<i32>>§status: Option<Status>planned- Planned *staging- Staging *active- Active *decommissioning- Decommissioning *retired- Retired
tenant: Option<Option<Box<AsnRangeRequestTenant>>>§facility: Option<String>Local facility ID or description
description: Option<String>§custom_fields: Option<HashMap<String, Value>>§comments: Option<String>Implementations§
Source§impl PatchedWritableLocationRequest
impl PatchedWritableLocationRequest
Sourcepub fn new() -> PatchedWritableLocationRequest
pub fn new() -> PatchedWritableLocationRequest
Extends PrimaryModelSerializer to include MPTT support.
Trait Implementations§
Source§impl Clone for PatchedWritableLocationRequest
impl Clone for PatchedWritableLocationRequest
Source§fn clone(&self) -> PatchedWritableLocationRequest
fn clone(&self) -> PatchedWritableLocationRequest
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 Default for PatchedWritableLocationRequest
impl Default for PatchedWritableLocationRequest
Source§fn default() -> PatchedWritableLocationRequest
fn default() -> PatchedWritableLocationRequest
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for PatchedWritableLocationRequest
impl<'de> Deserialize<'de> for PatchedWritableLocationRequest
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 PatchedWritableLocationRequest
impl PartialEq for PatchedWritableLocationRequest
Source§fn eq(&self, other: &PatchedWritableLocationRequest) -> bool
fn eq(&self, other: &PatchedWritableLocationRequest) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for PatchedWritableLocationRequest
Auto Trait Implementations§
impl Freeze for PatchedWritableLocationRequest
impl RefUnwindSafe for PatchedWritableLocationRequest
impl Send for PatchedWritableLocationRequest
impl Sync for PatchedWritableLocationRequest
impl Unpin for PatchedWritableLocationRequest
impl UnwindSafe for PatchedWritableLocationRequest
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