Struct k8s_openapi::api::networking::v1alpha1::ServiceCIDR
source · pub struct ServiceCIDR {
pub metadata: ObjectMeta,
pub spec: Option<ServiceCIDRSpec>,
pub status: Option<ServiceCIDRStatus>,
}
Expand description
ServiceCIDR defines a range of IP addresses using CIDR format (e.g. 192.168.0.0/24 or 2001:db2::/64). This range is used to allocate ClusterIPs to Service objects.
Fields§
§metadata: ObjectMeta
Standard object’s metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
spec: Option<ServiceCIDRSpec>
spec is the desired state of the ServiceCIDR. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
status: Option<ServiceCIDRStatus>
status represents the current state of the ServiceCIDR. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
Trait Implementations§
source§impl Clone for ServiceCIDR
impl Clone for ServiceCIDR
source§fn clone(&self) -> ServiceCIDR
fn clone(&self) -> ServiceCIDR
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 ServiceCIDR
impl Debug for ServiceCIDR
source§impl DeepMerge for ServiceCIDR
impl DeepMerge for ServiceCIDR
source§fn merge_from(&mut self, other: Self)
fn merge_from(&mut self, other: Self)
Merge
other
into self
.source§impl Default for ServiceCIDR
impl Default for ServiceCIDR
source§fn default() -> ServiceCIDR
fn default() -> ServiceCIDR
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for ServiceCIDR
impl<'de> Deserialize<'de> for ServiceCIDR
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 ListableResource for ServiceCIDR
impl ListableResource for ServiceCIDR
source§impl Metadata for ServiceCIDR
impl Metadata for ServiceCIDR
source§impl PartialEq for ServiceCIDR
impl PartialEq for ServiceCIDR
source§fn eq(&self, other: &ServiceCIDR) -> bool
fn eq(&self, other: &ServiceCIDR) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Resource for ServiceCIDR
impl Resource for ServiceCIDR
source§const API_VERSION: &'static str = "networking.k8s.io/v1alpha1"
const API_VERSION: &'static str = "networking.k8s.io/v1alpha1"
The API version of the resource. This is a composite of
Resource::GROUP
and Resource::VERSION
(eg "apiextensions.k8s.io/v1beta1"
)
or just the version for resources without a group (eg "v1"
). Read moresource§const GROUP: &'static str = "networking.k8s.io"
const GROUP: &'static str = "networking.k8s.io"
The group of the resource, or the empty string if the resource doesn’t have a group.
source§const URL_PATH_SEGMENT: &'static str = "servicecidrs"
const URL_PATH_SEGMENT: &'static str = "servicecidrs"
The URL path segment used to construct URLs related to this resource. Read more
§type Scope = ClusterResourceScope
type Scope = ClusterResourceScope
Indicates whether the resource is namespace-scoped or cluster-scoped or a subresource. Read more
source§impl Serialize for ServiceCIDR
impl Serialize for ServiceCIDR
impl StructuralPartialEq for ServiceCIDR
Auto Trait Implementations§
impl Freeze for ServiceCIDR
impl RefUnwindSafe for ServiceCIDR
impl Send for ServiceCIDR
impl Sync for ServiceCIDR
impl Unpin for ServiceCIDR
impl UnwindSafe for ServiceCIDR
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