pub struct Cable {Show 19 fields
pub id: Option<i32>,
pub url: Option<String>,
pub display_url: Option<String>,
pub display: Option<String>,
pub type: Option<Option<RHashType>>,
pub a_terminations: Option<Vec<GenericObject>>,
pub b_terminations: Option<Vec<GenericObject>>,
pub status: Option<Box<CableStatus>>,
pub tenant: Option<Option<Box<BriefTenant>>>,
pub label: Option<String>,
pub color: Option<String>,
pub length: Option<Option<f64>>,
pub length_unit: Option<Option<Box<CableLengthUnit>>>,
pub description: Option<String>,
pub comments: Option<String>,
pub tags: Option<Vec<NestedTag>>,
pub custom_fields: Option<HashMap<String, Value>>,
pub created: Option<Option<String>>,
pub last_updated: Option<Option<String>>,
}Expand description
Cable : Adds support for custom fields and tags.
Fields§
§id: Option<i32>§url: Option<String>§display_url: Option<String>§display: Option<String>§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<GenericObject>>§b_terminations: Option<Vec<GenericObject>>§status: Option<Box<CableStatus>>§tenant: Option<Option<Box<BriefTenant>>>§label: Option<String>§color: Option<String>§length: Option<Option<f64>>§length_unit: Option<Option<Box<CableLengthUnit>>>§description: Option<String>§comments: Option<String>§custom_fields: Option<HashMap<String, Value>>§created: Option<Option<String>>§last_updated: Option<Option<String>>Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Cable
impl<'de> Deserialize<'de> for Cable
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 Cable
Auto Trait Implementations§
impl Freeze for Cable
impl RefUnwindSafe for Cable
impl Send for Cable
impl Sync for Cable
impl Unpin for Cable
impl UnwindSafe for Cable
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