#[non_exhaustive]pub struct MeshIstio {
pub mesh_uid: String,
pub service_namespace: String,
pub service_name: String,
/* private fields */
}Expand description
Istio 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 mesh in which this Istio service is defined.
Corresponds to the mesh_uid metric label in Istio metrics.
service_namespace: StringThe namespace of the Istio service underlying this service. Corresponds
to the destination_service_namespace metric label in Istio metrics.
service_name: StringThe name of the Istio service underlying this service. Corresponds to the
destination_service_name metric label in Istio metrics.
Implementations§
Source§impl MeshIstio
impl MeshIstio
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_service_namespace<T: Into<String>>(self, v: T) -> Self
pub fn set_service_namespace<T: Into<String>>(self, v: T) -> Self
Sets the value of service_namespace.
Sourcepub fn set_service_name<T: Into<String>>(self, v: T) -> Self
pub fn set_service_name<T: Into<String>>(self, v: T) -> Self
Sets the value of service_name.
Trait Implementations§
impl StructuralPartialEq for MeshIstio
Auto Trait Implementations§
impl Freeze for MeshIstio
impl RefUnwindSafe for MeshIstio
impl Send for MeshIstio
impl Sync for MeshIstio
impl Unpin for MeshIstio
impl UnwindSafe for MeshIstio
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