pub struct PatchedWritableCableRequest {Show 13 fields
pub type: Option<Option<RHashType>>,
pub a_terminations: Option<Vec<GenericObjectRequest>>,
pub b_terminations: Option<Vec<GenericObjectRequest>>,
pub status: Option<Status>,
pub tenant: Option<Option<Box<AsnRangeRequestTenant>>>,
pub label: Option<String>,
pub color: Option<String>,
pub length: Option<Option<f64>>,
pub length_unit: Option<Option<LengthUnit>>,
pub description: Option<String>,
pub comments: Option<String>,
pub tags: Option<Vec<NestedTagRequest>>,
pub custom_fields: Option<HashMap<String, Value>>,
}Expand description
PatchedWritableCableRequest : Adds support for custom fields and tags.
Fields§
§type: Option<Option<RHashType>>cat3- CAT3 *cat5- CAT5 *cat5e- CAT5e *cat6- CAT6 *cat6a- CAT6a *cat7- CAT7 *cat7a- CAT7a *cat8- CAT8 *mrj21-trunk- MRJ21 Trunk *dac-active- Direct Attach Copper (Active) *dac-passive- Direct Attach Copper (Passive) *coaxial- Coaxial *mmf- Multimode Fiber *mmf-om1- Multimode Fiber (OM1) *mmf-om2- Multimode Fiber (OM2) *mmf-om3- Multimode Fiber (OM3) *mmf-om4- Multimode Fiber (OM4) *mmf-om5- Multimode Fiber (OM5) *smf- Single-mode Fiber *smf-os1- Single-mode Fiber (OS1) *smf-os2- Single-mode Fiber (OS2) *aoc- Active Optical Cabling (AOC) *power- Power *usb- USB
a_terminations: Option<Vec<GenericObjectRequest>>§b_terminations: Option<Vec<GenericObjectRequest>>§status: Option<Status>connected- Connected *planned- Planned *decommissioning- Decommissioning
tenant: Option<Option<Box<AsnRangeRequestTenant>>>§label: Option<String>§color: Option<String>§length: Option<Option<f64>>§length_unit: Option<Option<LengthUnit>>km- Kilometers *m- Meters *cm- Centimeters *mi- Miles *ft- Feet *in- Inches
description: Option<String>§comments: Option<String>§custom_fields: Option<HashMap<String, Value>>Implementations§
Source§impl PatchedWritableCableRequest
impl PatchedWritableCableRequest
Sourcepub fn new() -> PatchedWritableCableRequest
pub fn new() -> PatchedWritableCableRequest
Adds support for custom fields and tags.
Trait Implementations§
Source§impl Clone for PatchedWritableCableRequest
impl Clone for PatchedWritableCableRequest
Source§fn clone(&self) -> PatchedWritableCableRequest
fn clone(&self) -> PatchedWritableCableRequest
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 PatchedWritableCableRequest
impl Debug for PatchedWritableCableRequest
Source§impl Default for PatchedWritableCableRequest
impl Default for PatchedWritableCableRequest
Source§fn default() -> PatchedWritableCableRequest
fn default() -> PatchedWritableCableRequest
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for PatchedWritableCableRequest
impl<'de> Deserialize<'de> for PatchedWritableCableRequest
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
impl StructuralPartialEq for PatchedWritableCableRequest
Auto Trait Implementations§
impl Freeze for PatchedWritableCableRequest
impl RefUnwindSafe for PatchedWritableCableRequest
impl Send for PatchedWritableCableRequest
impl Sync for PatchedWritableCableRequest
impl Unpin for PatchedWritableCableRequest
impl UnwindSafe for PatchedWritableCableRequest
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