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 JsonSchema for ServiceCIDR
impl JsonSchema for ServiceCIDR
Source§fn schema_name() -> String
fn schema_name() -> String
The name of the generated JSON Schema. Read more
Source§fn json_schema(__gen: &mut SchemaGenerator) -> Schema
fn json_schema(__gen: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn is_referenceable() -> bool
fn is_referenceable() -> bool
Whether JSON Schemas generated for this type should be re-used where possible using the
$ref
keyword. Read moreSource§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§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
Source§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