#[non_exhaustive]pub struct Attributes {
pub criticality: Option<Criticality>,
pub environment: Option<Environment>,
pub developer_owners: Vec<ContactInfo>,
pub operator_owners: Vec<ContactInfo>,
pub business_owners: Vec<ContactInfo>,
/* private fields */
}Expand description
Consumer provided attributes.
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.criticality: Option<Criticality>Optional. User-defined criticality information.
environment: Option<Environment>Optional. User-defined environment information.
developer_owners: Vec<ContactInfo>Optional. Developer team that owns development and coding.
operator_owners: Vec<ContactInfo>Optional. Operator team that ensures runtime and operations.
business_owners: Vec<ContactInfo>Optional. Business team that ensures user needs are met and value is delivered
Implementations§
Source§impl Attributes
impl Attributes
Sourcepub fn set_criticality<T>(self, v: T) -> Selfwhere
T: Into<Criticality>,
pub fn set_criticality<T>(self, v: T) -> Selfwhere
T: Into<Criticality>,
Sets the value of criticality.
§Example
ⓘ
use google_cloud_apphub_v1::model::Criticality;
let x = Attributes::new().set_criticality(Criticality::default()/* use setters */);Sourcepub fn set_or_clear_criticality<T>(self, v: Option<T>) -> Selfwhere
T: Into<Criticality>,
pub fn set_or_clear_criticality<T>(self, v: Option<T>) -> Selfwhere
T: Into<Criticality>,
Sets or clears the value of criticality.
§Example
ⓘ
use google_cloud_apphub_v1::model::Criticality;
let x = Attributes::new().set_or_clear_criticality(Some(Criticality::default()/* use setters */));
let x = Attributes::new().set_or_clear_criticality(None::<Criticality>);Sourcepub fn set_environment<T>(self, v: T) -> Selfwhere
T: Into<Environment>,
pub fn set_environment<T>(self, v: T) -> Selfwhere
T: Into<Environment>,
Sets the value of environment.
§Example
ⓘ
use google_cloud_apphub_v1::model::Environment;
let x = Attributes::new().set_environment(Environment::default()/* use setters */);Sourcepub fn set_or_clear_environment<T>(self, v: Option<T>) -> Selfwhere
T: Into<Environment>,
pub fn set_or_clear_environment<T>(self, v: Option<T>) -> Selfwhere
T: Into<Environment>,
Sets or clears the value of environment.
§Example
ⓘ
use google_cloud_apphub_v1::model::Environment;
let x = Attributes::new().set_or_clear_environment(Some(Environment::default()/* use setters */));
let x = Attributes::new().set_or_clear_environment(None::<Environment>);Sourcepub fn set_developer_owners<T, V>(self, v: T) -> Self
pub fn set_developer_owners<T, V>(self, v: T) -> Self
Sets the value of developer_owners.
§Example
ⓘ
use google_cloud_apphub_v1::model::ContactInfo;
let x = Attributes::new()
.set_developer_owners([
ContactInfo::default()/* use setters */,
ContactInfo::default()/* use (different) setters */,
]);Sourcepub fn set_operator_owners<T, V>(self, v: T) -> Self
pub fn set_operator_owners<T, V>(self, v: T) -> Self
Sets the value of operator_owners.
§Example
ⓘ
use google_cloud_apphub_v1::model::ContactInfo;
let x = Attributes::new()
.set_operator_owners([
ContactInfo::default()/* use setters */,
ContactInfo::default()/* use (different) setters */,
]);Sourcepub fn set_business_owners<T, V>(self, v: T) -> Self
pub fn set_business_owners<T, V>(self, v: T) -> Self
Sets the value of business_owners.
§Example
ⓘ
use google_cloud_apphub_v1::model::ContactInfo;
let x = Attributes::new()
.set_business_owners([
ContactInfo::default()/* use setters */,
ContactInfo::default()/* use (different) setters */,
]);Trait Implementations§
Source§impl Clone for Attributes
impl Clone for Attributes
Source§fn clone(&self) -> Attributes
fn clone(&self) -> Attributes
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 Attributes
impl Debug for Attributes
Source§impl Default for Attributes
impl Default for Attributes
Source§fn default() -> Attributes
fn default() -> Attributes
Returns the “default value” for a type. Read more
Source§impl PartialEq for Attributes
impl PartialEq for Attributes
impl StructuralPartialEq for Attributes
Auto Trait Implementations§
impl Freeze for Attributes
impl RefUnwindSafe for Attributes
impl Send for Attributes
impl Sync for Attributes
impl Unpin for Attributes
impl UnsafeUnpin for Attributes
impl UnwindSafe for Attributes
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> FutureExt for T
impl<T> FutureExt for T
Source§fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_context(self, otel_cx: Context) -> WithContext<Self>
Source§fn with_current_context(self) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
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> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request