#[non_exhaustive]pub struct IstioCanonicalService {
pub mesh_uid: String,
pub canonical_service_namespace: String,
pub canonical_service: String,
/* private fields */
}Expand description
Canonical service scoped to an Istio mesh. Anthos clusters running ASM >= 1.6.8 will have their services ingested as this type.
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.mesh_uid: StringIdentifier for the Istio mesh in which this canonical service is defined.
Corresponds to the mesh_uid metric label in
Istio metrics.
canonical_service_namespace: StringThe namespace of the canonical service underlying this service.
Corresponds to the destination_canonical_service_namespace metric
label in Istio
metrics.
canonical_service: StringThe name of the canonical service underlying this service.
Corresponds to the destination_canonical_service_name metric label in
label in Istio
metrics.
Implementations§
Source§impl IstioCanonicalService
impl IstioCanonicalService
pub fn new() -> Self
Sourcepub fn set_mesh_uid<T: Into<String>>(self, v: T) -> Self
pub fn set_mesh_uid<T: Into<String>>(self, v: T) -> Self
Sets the value of mesh_uid.
Sourcepub fn set_canonical_service_namespace<T: Into<String>>(self, v: T) -> Self
pub fn set_canonical_service_namespace<T: Into<String>>(self, v: T) -> Self
Sets the value of canonical_service_namespace.
Sourcepub fn set_canonical_service<T: Into<String>>(self, v: T) -> Self
pub fn set_canonical_service<T: Into<String>>(self, v: T) -> Self
Sets the value of canonical_service.
Trait Implementations§
Source§impl Clone for IstioCanonicalService
impl Clone for IstioCanonicalService
Source§fn clone(&self) -> IstioCanonicalService
fn clone(&self) -> IstioCanonicalService
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 IstioCanonicalService
impl Debug for IstioCanonicalService
Source§impl Default for IstioCanonicalService
impl Default for IstioCanonicalService
Source§fn default() -> IstioCanonicalService
fn default() -> IstioCanonicalService
Returns the “default value” for a type. Read more
Source§impl Message for IstioCanonicalService
impl Message for IstioCanonicalService
Source§impl PartialEq for IstioCanonicalService
impl PartialEq for IstioCanonicalService
impl StructuralPartialEq for IstioCanonicalService
Auto Trait Implementations§
impl Freeze for IstioCanonicalService
impl RefUnwindSafe for IstioCanonicalService
impl Send for IstioCanonicalService
impl Sync for IstioCanonicalService
impl Unpin for IstioCanonicalService
impl UnwindSafe for IstioCanonicalService
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