Struct k8s_gateway_api::v1alpha2::ReferencePolicyTo
source · [−]pub struct ReferencePolicyTo {
pub group: Group,
pub kind: Kind,
pub name: Option<ObjectName>,
}Expand description
ReferencePolicyTo describes what Kinds are allowed as targets of the references.
Fields
group: GroupGroup is the group of the referent. When empty, the Kubernetes core API group is inferred.
Support: Core
kind: KindKind is the kind of the referent. Although implementations may support additional resources, the following types are part of the “Core” support level for this field:
- Service
name: Option<ObjectName>Name is the name of the referent. When unspecified, this policy refers to all resources of the specified Group and Kind in the local namespace.
Trait Implementations
sourceimpl Clone for ReferencePolicyTo
impl Clone for ReferencePolicyTo
sourcefn clone(&self) -> ReferencePolicyTo
fn clone(&self) -> ReferencePolicyTo
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read more
sourceimpl Debug for ReferencePolicyTo
impl Debug for ReferencePolicyTo
sourceimpl<'de> Deserialize<'de> for ReferencePolicyTo
impl<'de> Deserialize<'de> for ReferencePolicyTo
sourcefn 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
sourceimpl JsonSchema for ReferencePolicyTo
impl JsonSchema for ReferencePolicyTo
sourcefn schema_name() -> String
fn schema_name() -> String
The name of the generated JSON Schema. Read more
sourcefn json_schema(gen: &mut SchemaGenerator) -> Schema
fn json_schema(gen: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
sourcefn 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 more
sourceimpl Serialize for ReferencePolicyTo
impl Serialize for ReferencePolicyTo
Auto Trait Implementations
impl RefUnwindSafe for ReferencePolicyTo
impl Send for ReferencePolicyTo
impl Sync for ReferencePolicyTo
impl Unpin for ReferencePolicyTo
impl UnwindSafe for ReferencePolicyTo
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into)Uses borrowed data to replace owned data, usually by cloning. Read more