pub struct TunnelTerminationRequest {
pub tunnel: Box<PatchedWritableTunnelTerminationRequestTunnel>,
pub role: 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
TunnelTerminationRequest : Adds support for custom fields and tags.
Fields§
§tunnel: Box<PatchedWritableTunnelTerminationRequestTunnel>§role: Rolepeer- 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 TunnelTerminationRequest
impl TunnelTerminationRequest
Sourcepub fn new(
tunnel: PatchedWritableTunnelTerminationRequestTunnel,
role: Role,
termination_type: String,
) -> TunnelTerminationRequest
pub fn new( tunnel: PatchedWritableTunnelTerminationRequestTunnel, role: Role, termination_type: String, ) -> TunnelTerminationRequest
Adds support for custom fields and tags.
Trait Implementations§
Source§impl Clone for TunnelTerminationRequest
impl Clone for TunnelTerminationRequest
Source§fn clone(&self) -> TunnelTerminationRequest
fn clone(&self) -> TunnelTerminationRequest
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 TunnelTerminationRequest
impl Debug for TunnelTerminationRequest
Source§impl Default for TunnelTerminationRequest
impl Default for TunnelTerminationRequest
Source§fn default() -> TunnelTerminationRequest
fn default() -> TunnelTerminationRequest
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for TunnelTerminationRequest
impl<'de> Deserialize<'de> for TunnelTerminationRequest
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 TunnelTerminationRequest
impl PartialEq for TunnelTerminationRequest
Source§impl Serialize for TunnelTerminationRequest
impl Serialize for TunnelTerminationRequest
impl StructuralPartialEq for TunnelTerminationRequest
Auto Trait Implementations§
impl Freeze for TunnelTerminationRequest
impl RefUnwindSafe for TunnelTerminationRequest
impl Send for TunnelTerminationRequest
impl Sync for TunnelTerminationRequest
impl Unpin for TunnelTerminationRequest
impl UnwindSafe for TunnelTerminationRequest
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