#[non_exhaustive]pub struct NetworkService {
pub enabled: bool,
pub state: State,
/* private fields */
}Expand description
Represents a network service that is managed by a NetworkPolicy resource.
A network service provides a way to control an aspect of external access to
VMware workloads. For example, whether the VMware workloads in the
private clouds governed by a network policy can access or be accessed from
the internet.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.enabled: boolTrue if the service is enabled; false otherwise.
state: StateOutput only. State of the service. New values may be added to this enum when appropriate.
Implementations§
Trait Implementations§
Source§impl Clone for NetworkService
impl Clone for NetworkService
Source§fn clone(&self) -> NetworkService
fn clone(&self) -> NetworkService
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 NetworkService
impl Debug for NetworkService
Source§impl Default for NetworkService
impl Default for NetworkService
Source§fn default() -> NetworkService
fn default() -> NetworkService
Returns the “default value” for a type. Read more
Source§impl Message for NetworkService
impl Message for NetworkService
Source§impl PartialEq for NetworkService
impl PartialEq for NetworkService
impl StructuralPartialEq for NetworkService
Auto Trait Implementations§
impl Freeze for NetworkService
impl RefUnwindSafe for NetworkService
impl Send for NetworkService
impl Sync for NetworkService
impl Unpin for NetworkService
impl UnwindSafe for NetworkService
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