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