pub struct WritableTunnelTerminationRequest {
pub tunnel: Box<PatchedWritableTunnelTerminationRequestTunnel>,
pub role: Option<Role>,
pub termination_type: String,
pub termination_id: Option<Option<i64>>,
pub outside_ip: Option<Option<Box<DeviceWithConfigContextRequestPrimaryIp4>>>,
pub tags: Option<Vec<NestedTagRequest>>,
pub custom_fields: Option<HashMap<String, Value>>,
}Expand description
WritableTunnelTerminationRequest : Adds support for custom fields and tags.
Fields§
§tunnel: Box<PatchedWritableTunnelTerminationRequestTunnel>§role: Option<Role>peer- Peer *hub- Hub *spoke- Spoke
termination_type: String§termination_id: Option<Option<i64>>§outside_ip: Option<Option<Box<DeviceWithConfigContextRequestPrimaryIp4>>>§custom_fields: Option<HashMap<String, Value>>Implementations§
Source§impl WritableTunnelTerminationRequest
impl WritableTunnelTerminationRequest
Sourcepub fn new(
tunnel: PatchedWritableTunnelTerminationRequestTunnel,
termination_type: String,
) -> WritableTunnelTerminationRequest
pub fn new( tunnel: PatchedWritableTunnelTerminationRequestTunnel, termination_type: String, ) -> WritableTunnelTerminationRequest
Adds support for custom fields and tags.
Trait Implementations§
Source§impl Clone for WritableTunnelTerminationRequest
impl Clone for WritableTunnelTerminationRequest
Source§fn clone(&self) -> WritableTunnelTerminationRequest
fn clone(&self) -> WritableTunnelTerminationRequest
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 Default for WritableTunnelTerminationRequest
impl Default for WritableTunnelTerminationRequest
Source§fn default() -> WritableTunnelTerminationRequest
fn default() -> WritableTunnelTerminationRequest
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for WritableTunnelTerminationRequest
impl<'de> Deserialize<'de> for WritableTunnelTerminationRequest
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 WritableTunnelTerminationRequest
impl PartialEq for WritableTunnelTerminationRequest
Source§fn eq(&self, other: &WritableTunnelTerminationRequest) -> bool
fn eq(&self, other: &WritableTunnelTerminationRequest) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for WritableTunnelTerminationRequest
Auto Trait Implementations§
impl Freeze for WritableTunnelTerminationRequest
impl RefUnwindSafe for WritableTunnelTerminationRequest
impl Send for WritableTunnelTerminationRequest
impl Sync for WritableTunnelTerminationRequest
impl Unpin for WritableTunnelTerminationRequest
impl UnwindSafe for WritableTunnelTerminationRequest
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