pub struct BackendTLSPolicyTargetRefs {
pub group: String,
pub kind: String,
pub name: String,
pub section_name: Option<String>,
}Expand description
LocalPolicyTargetReferenceWithSectionName identifies an API object to apply a direct policy to. This should be used as part of Policy resources that can target single resources. For more information on how this policy attachment mode works, and a sample Policy resource, refer to the policy attachment documentation for Gateway API.
Note: This should only be used for direct policy attachment when references to SectionName are actually needed. In all other cases, LocalPolicyTargetReference should be used.
Fields§
§group: StringGroup is the group of the target resource.
kind: StringKind is kind of the target resource.
name: StringName is the name of the target resource.
section_name: Option<String>SectionName is the name of a section within the target resource. When unspecified, this targetRef targets the entire resource. In the following resources, SectionName is interpreted as the following:
- Gateway: Listener name
- HTTPRoute: HTTPRouteRule name
- Service: Port name
If a SectionName is specified, but does not exist on the targeted object,
the Policy must fail to attach, and the policy implementation should record
a ResolvedRefs or similar Condition in the Policy’s status.
Trait Implementations§
Source§impl Clone for BackendTLSPolicyTargetRefs
impl Clone for BackendTLSPolicyTargetRefs
Source§fn clone(&self) -> BackendTLSPolicyTargetRefs
fn clone(&self) -> BackendTLSPolicyTargetRefs
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for BackendTLSPolicyTargetRefs
impl Debug for BackendTLSPolicyTargetRefs
Source§impl Default for BackendTLSPolicyTargetRefs
impl Default for BackendTLSPolicyTargetRefs
Source§fn default() -> BackendTLSPolicyTargetRefs
fn default() -> BackendTLSPolicyTargetRefs
Source§impl<'de> Deserialize<'de> for BackendTLSPolicyTargetRefs
impl<'de> Deserialize<'de> for BackendTLSPolicyTargetRefs
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 BackendTLSPolicyTargetRefs
impl JsonSchema for BackendTLSPolicyTargetRefs
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
$ref keyword. Read moreimpl StructuralPartialEq for BackendTLSPolicyTargetRefs
Auto Trait Implementations§
impl Freeze for BackendTLSPolicyTargetRefs
impl RefUnwindSafe for BackendTLSPolicyTargetRefs
impl Send for BackendTLSPolicyTargetRefs
impl Sync for BackendTLSPolicyTargetRefs
impl Unpin for BackendTLSPolicyTargetRefs
impl UnwindSafe for BackendTLSPolicyTargetRefs
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more