#[non_exhaustive]pub struct RouteDestinations {
pub destination_ids: Vec<String>,
pub propagate_service: bool,
/* private fields */
}
Expand description
Information about route destinations for the Gateway API service mesh.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.destination_ids: Vec<String>
Required. The clusters where the Gateway API HTTPRoute resource will be deployed to. Valid entries include the associated entities IDs configured in the Target resource and “@self” to include the Target cluster.
propagate_service: bool
Optional. Whether to propagate the Kubernetes Service to the route destination clusters. The Service will always be deployed to the Target cluster even if the HTTPRoute is not. This option may be used to facilitate successful DNS lookup in the route destination clusters. Can only be set to true if destinations are specified.
Implementations§
Source§impl RouteDestinations
impl RouteDestinations
pub fn new() -> Self
Sourcepub fn set_destination_ids<T, V>(self, v: T) -> Self
pub fn set_destination_ids<T, V>(self, v: T) -> Self
Sets the value of destination_ids.
Sourcepub fn set_propagate_service<T: Into<bool>>(self, v: T) -> Self
pub fn set_propagate_service<T: Into<bool>>(self, v: T) -> Self
Sets the value of propagate_service.
Trait Implementations§
Source§impl Clone for RouteDestinations
impl Clone for RouteDestinations
Source§fn clone(&self) -> RouteDestinations
fn clone(&self) -> RouteDestinations
Returns a duplicate 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 RouteDestinations
impl Debug for RouteDestinations
Source§impl Default for RouteDestinations
impl Default for RouteDestinations
Source§fn default() -> RouteDestinations
fn default() -> RouteDestinations
Returns the “default value” for a type. Read more
Source§impl Message for RouteDestinations
impl Message for RouteDestinations
Source§impl PartialEq for RouteDestinations
impl PartialEq for RouteDestinations
impl StructuralPartialEq for RouteDestinations
Auto Trait Implementations§
impl Freeze for RouteDestinations
impl RefUnwindSafe for RouteDestinations
impl Send for RouteDestinations
impl Sync for RouteDestinations
impl Unpin for RouteDestinations
impl UnwindSafe for RouteDestinations
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