pub struct DcimLocationsCreateRequest {
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 owner: Option<Option<Box<AsnRangeRequestOwner>>>,
pub comments: Option<String>,
}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>>§owner: Option<Option<Box<AsnRangeRequestOwner>>>§comments: Option<String>Implementations§
Source§impl DcimLocationsCreateRequest
impl DcimLocationsCreateRequest
pub fn new( name: String, slug: String, site: DeviceWithConfigContextRequestSite, ) -> DcimLocationsCreateRequest
Trait Implementations§
Source§impl Clone for DcimLocationsCreateRequest
impl Clone for DcimLocationsCreateRequest
Source§fn clone(&self) -> DcimLocationsCreateRequest
fn clone(&self) -> DcimLocationsCreateRequest
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 DcimLocationsCreateRequest
impl Debug for DcimLocationsCreateRequest
Source§impl Default for DcimLocationsCreateRequest
impl Default for DcimLocationsCreateRequest
Source§fn default() -> DcimLocationsCreateRequest
fn default() -> DcimLocationsCreateRequest
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for DcimLocationsCreateRequest
impl<'de> Deserialize<'de> for DcimLocationsCreateRequest
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 DcimLocationsCreateRequest
impl PartialEq for DcimLocationsCreateRequest
Source§fn eq(&self, other: &DcimLocationsCreateRequest) -> bool
fn eq(&self, other: &DcimLocationsCreateRequest) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for DcimLocationsCreateRequest
Auto Trait Implementations§
impl Freeze for DcimLocationsCreateRequest
impl RefUnwindSafe for DcimLocationsCreateRequest
impl Send for DcimLocationsCreateRequest
impl Sync for DcimLocationsCreateRequest
impl Unpin for DcimLocationsCreateRequest
impl UnsafeUnpin for DcimLocationsCreateRequest
impl UnwindSafe for DcimLocationsCreateRequest
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