pub struct DcimConsoleServerPortsCreateRequest {
pub device: Box<BriefInterfaceRequestDevice>,
pub module: Option<Option<Box<ConsolePortRequestModule>>>,
pub name: String,
pub label: Option<String>,
pub type: Option<Option<RHashType>>,
pub speed: Option<Option<Speed>>,
pub description: Option<String>,
pub mark_connected: Option<bool>,
pub owner: Option<Option<Box<AsnRangeRequestOwner>>>,
pub tags: Option<Vec<NestedTagRequest>>,
pub custom_fields: Option<HashMap<String, Value>>,
}Fields§
§device: Box<BriefInterfaceRequestDevice>§module: Option<Option<Box<ConsolePortRequestModule>>>§name: String§label: Option<String>Physical label
type: Option<Option<RHashType>>Physical port type * de-9 - DE-9 * db-25 - DB-25 * rj-11 - RJ-11 * rj-12 - RJ-12 * rj-45 - RJ-45 * mini-din-8 - Mini-DIN 8 * usb-a - USB Type A * usb-b - USB Type B * usb-c - USB Type C * usb-mini-a - USB Mini A * usb-mini-b - USB Mini B * usb-micro-a - USB Micro A * usb-micro-b - USB Micro B * usb-micro-ab - USB Micro AB * other - Other
speed: Option<Option<Speed>>Port speed in bits per second * 1200 - 1200 bps * 2400 - 2400 bps * 4800 - 4800 bps * 9600 - 9600 bps * 19200 - 19.2 kbps * 38400 - 38.4 kbps * 57600 - 57.6 kbps * 115200 - 115.2 kbps
description: Option<String>§mark_connected: Option<bool>Treat as if a cable is connected
owner: Option<Option<Box<AsnRangeRequestOwner>>>§custom_fields: Option<HashMap<String, Value>>Implementations§
Source§impl DcimConsoleServerPortsCreateRequest
impl DcimConsoleServerPortsCreateRequest
pub fn new( device: BriefInterfaceRequestDevice, name: String, ) -> DcimConsoleServerPortsCreateRequest
Trait Implementations§
Source§impl Clone for DcimConsoleServerPortsCreateRequest
impl Clone for DcimConsoleServerPortsCreateRequest
Source§fn clone(&self) -> DcimConsoleServerPortsCreateRequest
fn clone(&self) -> DcimConsoleServerPortsCreateRequest
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 Default for DcimConsoleServerPortsCreateRequest
impl Default for DcimConsoleServerPortsCreateRequest
Source§fn default() -> DcimConsoleServerPortsCreateRequest
fn default() -> DcimConsoleServerPortsCreateRequest
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for DcimConsoleServerPortsCreateRequest
impl<'de> Deserialize<'de> for DcimConsoleServerPortsCreateRequest
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 DcimConsoleServerPortsCreateRequest
impl PartialEq for DcimConsoleServerPortsCreateRequest
Source§fn eq(&self, other: &DcimConsoleServerPortsCreateRequest) -> bool
fn eq(&self, other: &DcimConsoleServerPortsCreateRequest) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for DcimConsoleServerPortsCreateRequest
Auto Trait Implementations§
impl Freeze for DcimConsoleServerPortsCreateRequest
impl RefUnwindSafe for DcimConsoleServerPortsCreateRequest
impl Send for DcimConsoleServerPortsCreateRequest
impl Sync for DcimConsoleServerPortsCreateRequest
impl Unpin for DcimConsoleServerPortsCreateRequest
impl UnsafeUnpin for DcimConsoleServerPortsCreateRequest
impl UnwindSafe for DcimConsoleServerPortsCreateRequest
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