pub struct NetworkConnection {
pub local_network_id: String,
pub remote_network_id: String,
pub routing_policy: Option<HashMap<String, NetworkConnectionRoutingPolicyValue>>,
}
Fields§
§local_network_id: String
The network ID of the profile trying to create the connection.
remote_network_id: String
The network ID the profile is attempting to connect to.
routing_policy: Option<HashMap<String, NetworkConnectionRoutingPolicyValue>>
Implementations§
Source§impl NetworkConnection
impl NetworkConnection
pub fn new( local_network_id: String, remote_network_id: String, ) -> NetworkConnection
Trait Implementations§
Source§impl Clone for NetworkConnection
impl Clone for NetworkConnection
Source§fn clone(&self) -> NetworkConnection
fn clone(&self) -> NetworkConnection
Returns a copy 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 NetworkConnection
impl Debug for NetworkConnection
Source§impl Default for NetworkConnection
impl Default for NetworkConnection
Source§fn default() -> NetworkConnection
fn default() -> NetworkConnection
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for NetworkConnection
impl<'de> Deserialize<'de> for NetworkConnection
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 NetworkConnection
impl PartialEq for NetworkConnection
Source§impl Serialize for NetworkConnection
impl Serialize for NetworkConnection
impl StructuralPartialEq for NetworkConnection
Auto Trait Implementations§
impl Freeze for NetworkConnection
impl RefUnwindSafe for NetworkConnection
impl Send for NetworkConnection
impl Sync for NetworkConnection
impl Unpin for NetworkConnection
impl UnwindSafe for NetworkConnection
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