pub struct WritableVlanRequest {Show 13 fields
pub site: Option<Option<Box<PatchedWritableVlanRequestSite>>>,
pub group: Option<Option<Box<PatchedWritableVlanRequestGroup>>>,
pub vid: i32,
pub name: String,
pub tenant: Option<Option<Box<AsnRangeRequestTenant>>>,
pub status: Option<Status>,
pub role: Option<Option<Box<IpRangeRequestRole>>>,
pub description: Option<String>,
pub qinq_role: Option<Option<QinqRole>>,
pub qinq_svlan: Option<Option<i32>>,
pub comments: Option<String>,
pub tags: Option<Vec<NestedTagRequest>>,
pub custom_fields: Option<HashMap<String, Value>>,
}Expand description
WritableVlanRequest : Adds support for custom fields and tags.
Fields§
§site: Option<Option<Box<PatchedWritableVlanRequestSite>>>§group: Option<Option<Box<PatchedWritableVlanRequestGroup>>>§vid: i32Numeric VLAN ID (1-4094)
name: String§tenant: Option<Option<Box<AsnRangeRequestTenant>>>§status: Option<Status>Operational status of this VLAN * active - Active * reserved - Reserved * deprecated - Deprecated
role: Option<Option<Box<IpRangeRequestRole>>>§description: Option<String>§qinq_role: Option<Option<QinqRole>>Customer/service VLAN designation (for Q-in-Q/IEEE 802.1ad) * svlan - Service * cvlan - Customer
qinq_svlan: Option<Option<i32>>§comments: Option<String>§custom_fields: Option<HashMap<String, Value>>Implementations§
Source§impl WritableVlanRequest
impl WritableVlanRequest
Sourcepub fn new(vid: i32, name: String) -> WritableVlanRequest
pub fn new(vid: i32, name: String) -> WritableVlanRequest
Adds support for custom fields and tags.
Trait Implementations§
Source§impl Clone for WritableVlanRequest
impl Clone for WritableVlanRequest
Source§fn clone(&self) -> WritableVlanRequest
fn clone(&self) -> WritableVlanRequest
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 WritableVlanRequest
impl Debug for WritableVlanRequest
Source§impl Default for WritableVlanRequest
impl Default for WritableVlanRequest
Source§fn default() -> WritableVlanRequest
fn default() -> WritableVlanRequest
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for WritableVlanRequest
impl<'de> Deserialize<'de> for WritableVlanRequest
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 WritableVlanRequest
impl PartialEq for WritableVlanRequest
Source§impl Serialize for WritableVlanRequest
impl Serialize for WritableVlanRequest
impl StructuralPartialEq for WritableVlanRequest
Auto Trait Implementations§
impl Freeze for WritableVlanRequest
impl RefUnwindSafe for WritableVlanRequest
impl Send for WritableVlanRequest
impl Sync for WritableVlanRequest
impl Unpin for WritableVlanRequest
impl UnwindSafe for WritableVlanRequest
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