pub struct NetworkGrant {
pub mode: NetworkGrantMode,
pub destinations: Option<Vec<String>>,
pub cidrs: Option<Vec<String>>,
}Fields§
§mode: NetworkGrantMode§destinations: Option<Vec<String>>§cidrs: Option<Vec<String>>Implementations§
Source§impl NetworkGrant
impl NetworkGrant
pub fn new(mode: NetworkGrantMode) -> NetworkGrant
Trait Implementations§
Source§impl Clone for NetworkGrant
impl Clone for NetworkGrant
Source§fn clone(&self) -> NetworkGrant
fn clone(&self) -> NetworkGrant
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 NetworkGrant
impl Debug for NetworkGrant
Source§impl Default for NetworkGrant
impl Default for NetworkGrant
Source§fn default() -> NetworkGrant
fn default() -> NetworkGrant
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for NetworkGrant
impl<'de> Deserialize<'de> for NetworkGrant
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 NetworkGrant
impl PartialEq for NetworkGrant
Source§fn eq(&self, other: &NetworkGrant) -> bool
fn eq(&self, other: &NetworkGrant) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for NetworkGrant
impl Serialize for NetworkGrant
impl StructuralPartialEq for NetworkGrant
Auto Trait Implementations§
impl Freeze for NetworkGrant
impl RefUnwindSafe for NetworkGrant
impl Send for NetworkGrant
impl Sync for NetworkGrant
impl Unpin for NetworkGrant
impl UnsafeUnpin for NetworkGrant
impl UnwindSafe for NetworkGrant
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