InterfaceTemplateRequest

Struct InterfaceTemplateRequest 

Source
pub struct InterfaceTemplateRequest {
    pub device_type: Option<Option<Box<ConsolePortTemplateRequestDeviceType>>>,
    pub module_type: Option<Option<Box<ConsolePortTemplateRequestModuleType>>>,
    pub name: String,
    pub label: Option<String>,
    pub type: RHashType,
    pub enabled: Option<bool>,
    pub mgmt_only: Option<bool>,
    pub description: Option<String>,
    pub bridge: Option<Option<Box<NestedInterfaceTemplateRequest>>>,
    pub poe_mode: Option<Option<PoeMode>>,
    pub poe_type: Option<Option<PoeType>>,
    pub rf_role: Option<Option<RfRole>>,
}
Expand description

InterfaceTemplateRequest : Extends the built-in ModelSerializer to enforce calling full_clean() on a copy of the associated instance during validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144)

Fields§

§device_type: Option<Option<Box<ConsolePortTemplateRequestDeviceType>>>§module_type: Option<Option<Box<ConsolePortTemplateRequestModuleType>>>§name: String

{module} is accepted as a substitution for the module bay position when attached to a module type.

§label: Option<String>

Physical label

§type: RHashType
  • virtual - Virtual * bridge - Bridge * lag - Link Aggregation Group (LAG) * 100base-fx - 100BASE-FX (10/100ME) * 100base-lfx - 100BASE-LFX (10/100ME) * 100base-tx - 100BASE-TX (10/100ME) * 100base-t1 - 100BASE-T1 (10/100ME) * 1000base-bx10-d - 1000BASE-BX10-D (1GE BiDi Down) * 1000base-bx10-u - 1000BASE-BX10-U (1GE BiDi Up) * 1000base-cwdm - 1000BASE-CWDM (1GE) * 1000base-cx - 1000BASE-CX (1GE DAC) * 1000base-dwdm - 1000BASE-DWDM (1GE) * 1000base-ex - 1000BASE-EX (1GE) * 1000base-lsx - 1000BASE-LSX (1GE) * 1000base-lx - 1000BASE-LX (1GE) * 1000base-lx10 - 1000BASE-LX10/LH (1GE) * 1000base-sx - 1000BASE-SX (1GE) * 1000base-t - 1000BASE-T (1GE) * 1000base-tx - 1000BASE-TX (1GE) * 1000base-zx - 1000BASE-ZX (1GE) * 2.5gbase-t - 2.5GBASE-T (2.5GE) * 5gbase-t - 5GBASE-T (5GE) * 10gbase-br-d - 10GBASE-BR-D (10GE BiDi Down) * 10gbase-br-u - 10GBASE-BR-U (10GE BiDi Up) * 10gbase-cx4 - 10GBASE-CX4 (10GE DAC) * 10gbase-er - 10GBASE-ER (10GE) * 10gbase-lr - 10GBASE-LR (10GE) * 10gbase-lrm - 10GBASE-LRM (10GE) * 10gbase-lx4 - 10GBASE-LX4 (10GE) * 10gbase-sr - 10GBASE-SR (10GE) * 10gbase-t - 10GBASE-T (10GE) * 10gbase-zr - 10GBASE-ZR (10GE) * 25gbase-cr - 25GBASE-CR (25GE DAC) * 25gbase-er - 25GBASE-ER (25GE) * 25gbase-lr - 25GBASE-LR (25GE) * 25gbase-sr - 25GBASE-SR (25GE) * 25gbase-t - 25GBASE-T (25GE) * 40gbase-cr4 - 40GBASE-CR4 (40GE DAC) * 40gbase-er4 - 40GBASE-ER4 (40GE) * 40gbase-fr4 - 40GBASE-FR4 (40GE) * 40gbase-lr4 - 40GBASE-LR4 (40GE) * 40gbase-sr4 - 40GBASE-SR4 (40GE) * 50gbase-cr - 50GBASE-CR (50GE DAC) * 50gbase-er - 50GBASE-ER (50GE) * 50gbase-fr - 50GBASE-FR (50GE) * 50gbase-lr - 50GBASE-LR (50GE) * 50gbase-sr - 50GBASE-SR (50GE) * 100gbase-cr1 - 100GBASE-CR1 (100GE DAC) * 100gbase-cr2 - 100GBASE-CR2 (100GE DAC) * 100gbase-cr4 - 100GBASE-CR4 (100GE DAC) * 100gbase-cr10 - 100GBASE-CR10 (100GE DAC) * 100gbase-cwdm4 - 100GBASE-CWDM4 (100GE) * 100gbase-dr - 100GBASE-DR (100GE) * 100gbase-er4 - 100GBASE-ER4 (100GE) * 100gbase-fr1 - 100GBASE-FR1 (100GE) * 100gbase-lr1 - 100GBASE-LR1 (100GE) * 100gbase-lr4 - 100GBASE-LR4 (100GE) * 100gbase-sr1 - 100GBASE-SR1 (100GE) * 100gbase-sr1.2 - 100GBASE-SR1.2 (100GE BiDi) * 100gbase-sr2 - 100GBASE-SR2 (100GE) * 100gbase-sr4 - 100GBASE-SR4 (100GE) * 100gbase-sr10 - 100GBASE-SR10 (100GE) * 100gbase-zr - 100GBASE-ZR (100GE) * 200gbase-cr2 - 200GBASE-CR2 (200GE) * 200gbase-cr4 - 200GBASE-CR4 (200GE) * 200gbase-dr4 - 200GBASE-DR4 (200GE) * 200gbase-er4 - 200GBASE-ER4 (200GE) * 200gbase-fr4 - 200GBASE-FR4 (200GE) * 200gbase-lr4 - 200GBASE-LR4 (200GE) * 200gbase-sr2 - 200GBASE-SR2 (200GE) * 200gbase-sr4 - 200GBASE-SR4 (200GE) * 200gbase-vr2 - 200GBASE-VR2 (200GE) * 400gbase-cr4 - 400GBASE-CR4 (400GE) * 400gbase-dr4 - 400GBASE-DR4 (400GE) * 400gbase-er8 - 400GBASE-ER8 (400GE) * 400gbase-fr4 - 400GBASE-FR4 (400GE) * 400gbase-fr8 - 400GBASE-FR8 (400GE) * 400gbase-lr4 - 400GBASE-LR4 (400GE) * 400gbase-lr8 - 400GBASE-LR8 (400GE) * 400gbase-sr4 - 400GBASE-SR4 (400GE) * 400gbase-sr4_2 - 400GBASE-SR4.2 (400GE BiDi) * 400gbase-sr8 - 400GBASE-SR8 (400GE) * 400gbase-sr16 - 400GBASE-SR16 (400GE) * 400gbase-vr4 - 400GBASE-VR4 (400GE) * 400gbase-zr - 400GBASE-ZR (400GE) * 800gbase-cr8 - 800GBASE-CR8 (800GE) * 800gbase-dr8 - 800GBASE-DR8 (800GE) * 800gbase-sr8 - 800GBASE-SR8 (800GE) * 800gbase-vr8 - 800GBASE-VR8 (800GE) * 100base-x-sfp - SFP (100ME) * 1000base-x-gbic - GBIC (1GE) * 1000base-x-sfp - SFP (1GE) * 10gbase-x-sfpp - SFP+ (10GE) * 10gbase-x-xenpak - XENPAK (10GE) * 10gbase-x-xfp - XFP (10GE) * 10gbase-x-x2 - X2 (10GE) * 25gbase-x-sfp28 - SFP28 (25GE) * 40gbase-x-qsfpp - QSFP+ (40GE) * 50gbase-x-sfp28 - QSFP28 (50GE) * 50gbase-x-sfp56 - SFP56 (50GE) * 100gbase-x-cfp - CFP (100GE) * 100gbase-x-cfp2 - CFP2 (100GE) * 100gbase-x-cfp4 - CFP4 (100GE) * 100gbase-x-cxp - CXP (100GE) * 100gbase-x-cpak - Cisco CPAK (100GE) * 100gbase-x-dsfp - DSFP (100GE) * 100gbase-x-qsfp28 - QSFP28 (100GE) * 100gbase-x-qsfpdd - QSFP-DD (100GE) * 100gbase-x-sfpdd - SFP-DD (100GE) * 200gbase-x-cfp2 - CFP2 (200GE) * 200gbase-x-qsfp56 - QSFP56 (200GE) * 200gbase-x-qsfpdd - QSFP-DD (200GE) * 400gbase-x-qsfp112 - QSFP112 (400GE) * 400gbase-x-qsfpdd - QSFP-DD (400GE) * 400gbase-x-cdfp - CDFP (400GE) * 400gbase-x-cfp2 - CFP2 (400GE) * 400gbase-x-cfp8 - CPF8 (400GE) * 400gbase-x-osfp - OSFP (400GE) * 400gbase-x-osfp-rhs - OSFP-RHS (400GE) * 800gbase-x-osfp - OSFP (800GE) * 800gbase-x-qsfpdd - QSFP-DD (800GE) * 1000base-kx - 1000BASE-KX (1GE) * 2.5gbase-kx - 2.5GBASE-KX (2.5GE) * 5gbase-kr - 5GBASE-KR (5GE) * 10gbase-kr - 10GBASE-KR (10GE) * 10gbase-kx4 - 10GBASE-KX4 (10GE) * 25gbase-kr - 25GBASE-KR (25GE) * 40gbase-kr4 - 40GBASE-KR4 (40GE) * 50gbase-kr - 50GBASE-KR (50GE) * 100gbase-kp4 - 100GBASE-KP4 (100GE) * 100gbase-kr2 - 100GBASE-KR2 (100GE) * 100gbase-kr4 - 100GBASE-KR4 (100GE) * ieee802.11a - IEEE 802.11a * ieee802.11g - IEEE 802.11b/g * ieee802.11n - IEEE 802.11n (Wi-Fi 4) * ieee802.11ac - IEEE 802.11ac (Wi-Fi 5) * ieee802.11ad - IEEE 802.11ad (WiGig) * ieee802.11ax - IEEE 802.11ax (Wi-Fi 6) * ieee802.11ay - IEEE 802.11ay (WiGig) * ieee802.11be - IEEE 802.11be (Wi-Fi 7) * ieee802.15.1 - IEEE 802.15.1 (Bluetooth) * ieee802.15.4 - IEEE 802.15.4 (LR-WPAN) * other-wireless - Other (Wireless) * gsm - GSM * cdma - CDMA * lte - LTE * 4g - 4G * 5g - 5G * sonet-oc3 - OC-3/STM-1 * sonet-oc12 - OC-12/STM-4 * sonet-oc48 - OC-48/STM-16 * sonet-oc192 - OC-192/STM-64 * sonet-oc768 - OC-768/STM-256 * sonet-oc1920 - OC-1920/STM-640 * sonet-oc3840 - OC-3840/STM-1234 * 1gfc-sfp - SFP (1GFC) * 2gfc-sfp - SFP (2GFC) * 4gfc-sfp - SFP (4GFC) * 8gfc-sfpp - SFP+ (8GFC) * 16gfc-sfpp - SFP+ (16GFC) * 32gfc-sfp28 - SFP28 (32GFC) * 32gfc-sfpp - SFP+ (32GFC) * 64gfc-qsfpp - QSFP+ (64GFC) * 64gfc-sfpdd - SFP-DD (64GFC) * 64gfc-sfpp - SFP+ (64GFC) * 128gfc-qsfp28 - QSFP28 (128GFC) * infiniband-sdr - SDR (2 Gbps) * infiniband-ddr - DDR (4 Gbps) * infiniband-qdr - QDR (8 Gbps) * infiniband-fdr10 - FDR10 (10 Gbps) * infiniband-fdr - FDR (13.5 Gbps) * infiniband-edr - EDR (25 Gbps) * infiniband-hdr - HDR (50 Gbps) * infiniband-ndr - NDR (100 Gbps) * infiniband-xdr - XDR (250 Gbps) * t1 - T1 (1.544 Mbps) * e1 - E1 (2.048 Mbps) * t3 - T3 (45 Mbps) * e3 - E3 (34 Mbps) * xdsl - xDSL * docsis - DOCSIS * moca - MoCA * bpon - BPON (622 Mbps / 155 Mbps) * epon - EPON (1 Gbps) * 10g-epon - 10G-EPON (10 Gbps) * gpon - GPON (2.5 Gbps / 1.25 Gbps) * xg-pon - XG-PON (10 Gbps / 2.5 Gbps) * xgs-pon - XGS-PON (10 Gbps) * ng-pon2 - NG-PON2 (TWDM-PON) (4x10 Gbps) * 25g-pon - 25G-PON (25 Gbps) * 50g-pon - 50G-PON (50 Gbps) * cisco-stackwise - Cisco StackWise * cisco-stackwise-plus - Cisco StackWise Plus * cisco-flexstack - Cisco FlexStack * cisco-flexstack-plus - Cisco FlexStack Plus * cisco-stackwise-80 - Cisco StackWise-80 * cisco-stackwise-160 - Cisco StackWise-160 * cisco-stackwise-320 - Cisco StackWise-320 * cisco-stackwise-480 - Cisco StackWise-480 * cisco-stackwise-1t - Cisco StackWise-1T * juniper-vcp - Juniper VCP * extreme-summitstack - Extreme SummitStack * extreme-summitstack-128 - Extreme SummitStack-128 * extreme-summitstack-256 - Extreme SummitStack-256 * extreme-summitstack-512 - Extreme SummitStack-512 * other - Other
§enabled: Option<bool>§mgmt_only: Option<bool>§description: Option<String>§bridge: Option<Option<Box<NestedInterfaceTemplateRequest>>>§poe_mode: Option<Option<PoeMode>>
  • pd - PD * pse - PSE
§poe_type: Option<Option<PoeType>>
  • type1-ieee802.3af - 802.3af (Type 1) * type2-ieee802.3at - 802.3at (Type 2) * type3-ieee802.3bt - 802.3bt (Type 3) * type4-ieee802.3bt - 802.3bt (Type 4) * passive-24v-2pair - Passive 24V (2-pair) * passive-24v-4pair - Passive 24V (4-pair) * passive-48v-2pair - Passive 48V (2-pair) * passive-48v-4pair - Passive 48V (4-pair)
§rf_role: Option<Option<RfRole>>
  • ap - Access point * station - Station

Implementations§

Source§

impl InterfaceTemplateRequest

Source

pub fn new(name: String, type: RHashType) -> InterfaceTemplateRequest

Extends the built-in ModelSerializer to enforce calling full_clean() on a copy of the associated instance during validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144)

Trait Implementations§

Source§

impl Clone for InterfaceTemplateRequest

Source§

fn clone(&self) -> InterfaceTemplateRequest

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for InterfaceTemplateRequest

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Default for InterfaceTemplateRequest

Source§

fn default() -> InterfaceTemplateRequest

Returns the “default value” for a type. Read more
Source§

impl<'de> Deserialize<'de> for InterfaceTemplateRequest

Source§

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 InterfaceTemplateRequest

Source§

fn eq(&self, other: &InterfaceTemplateRequest) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl Serialize for InterfaceTemplateRequest

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more
Source§

impl StructuralPartialEq for InterfaceTemplateRequest

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> PolicyExt for T
where T: ?Sized,

Source§

fn and<P, B, E>(self, other: P) -> And<T, P>
where T: Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns Action::Follow only if self and other return Action::Follow. Read more
Source§

fn or<P, B, E>(self, other: P) -> Or<T, P>
where T: Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns Action::Follow if either self or other returns Action::Follow. Read more
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,