Struct k8s_gateway_api::ReferenceGrant 
source · pub struct ReferenceGrant {
    pub from: Vec<ReferenceGrantFrom>,
    pub to: Vec<ReferenceGrantFrom>,
}Expand description
ReferenceGrant 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 ReferenceGrant 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 ReferenceGrant.
Fields§
§from: Vec<ReferenceGrantFrom>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: Core
to: Vec<ReferenceGrantFrom>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§
source§impl Clone for ReferenceGrant
 
impl Clone for ReferenceGrant
source§fn clone(&self) -> ReferenceGrant
 
fn clone(&self) -> ReferenceGrant
1.0.0 · source§fn clone_from(&mut self, source: &Self)
 
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for ReferenceGrant
 
impl Debug for ReferenceGrant
source§impl<'de> Deserialize<'de> for ReferenceGrant
 
impl<'de> Deserialize<'de> for ReferenceGrant
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>,
source§impl JsonSchema for ReferenceGrant
 
impl JsonSchema for ReferenceGrant
source§fn schema_name() -> String
 
fn schema_name() -> String
source§fn json_schema(gen: &mut SchemaGenerator) -> Schema
 
fn json_schema(gen: &mut SchemaGenerator) -> Schema
source§fn is_referenceable() -> bool
 
fn is_referenceable() -> bool
$ref keyword. Read more