Struct k8s_gateway_api::v1alpha2::ReferencePolicy
source · [−]pub struct ReferencePolicy {
pub from: Vec<ReferencePolicyFrom>,
pub to: Vec<ReferencePolicyFrom>,
}Expand description
ReferencePolicy identifies kinds of resources in other namespaces that are trusted to reference the specified kinds of resources in the same namespace as the policy.
Each ReferencePolicy can be used to represent a unique trust relationship. Additional Reference Policies can be used to add to the set of trusted sources of inbound references for the namespace they are defined within.
All cross-namespace references in Gateway API (with the exception of cross-namespace Gateway-route attachment) require a ReferencePolicy.
Support: Core
Fields
from: Vec<ReferencePolicyFrom>From describes the trusted namespaces and kinds that can reference the resources described in “To”. Each entry in this list must be considered to be an additional place that references can be valid from, or to put this another way, entries must be combined using OR.
Support: Cor
to: Vec<ReferencePolicyFrom>To describes the resources that may be referenced by the resources described in “From”. Each entry in this list must be considered to be an additional place that references can be valid to, or to put this another way, entries must be combined using OR.
Support: Core
Trait Implementations
sourceimpl Clone for ReferencePolicy
impl Clone for ReferencePolicy
sourcefn clone(&self) -> ReferencePolicy
fn clone(&self) -> ReferencePolicy
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 ReferencePolicy
impl Debug for ReferencePolicy
sourceimpl<'de> Deserialize<'de> for ReferencePolicy
impl<'de> Deserialize<'de> for ReferencePolicy
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 ReferencePolicy
impl JsonSchema for ReferencePolicy
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 ReferencePolicy
impl Serialize for ReferencePolicy
Auto Trait Implementations
impl RefUnwindSafe for ReferencePolicy
impl Send for ReferencePolicy
impl Sync for ReferencePolicy
impl Unpin for ReferencePolicy
impl UnwindSafe for ReferencePolicy
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