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