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§impl Debug for NetworkGrant
impl Debug for NetworkGrant
Source§impl Default for NetworkGrant
impl Default for NetworkGrant
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§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