#[non_exhaustive]pub struct DiscoveredWorkload {
pub name: String,
pub workload_reference: Option<WorkloadReference>,
pub workload_properties: Option<WorkloadProperties>,
/* private fields */
}Expand description
DiscoveredWorkload is a binary deployment (such as managed instance groups (MIGs) and GKE deployments) that performs the smallest logical subset of business functionality. A discovered workload can be registered to an App Hub Workload.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.name: StringIdentifier. The resource name of the discovered workload. Format:
"projects/{host-project-id}/locations/{location}/discoveredWorkloads/{uuid}"
workload_reference: Option<WorkloadReference>Output only. Reference of an underlying compute resource represented by the Workload. These are immutable.
workload_properties: Option<WorkloadProperties>Output only. Properties of an underlying compute resource represented by the Workload. These are immutable.
Implementations§
Source§impl DiscoveredWorkload
impl DiscoveredWorkload
Sourcepub fn set_workload_reference<T>(self, v: T) -> Selfwhere
T: Into<WorkloadReference>,
pub fn set_workload_reference<T>(self, v: T) -> Selfwhere
T: Into<WorkloadReference>,
Sets the value of workload_reference.
§Example
use google_cloud_apphub_v1::model::WorkloadReference;
let x = DiscoveredWorkload::new().set_workload_reference(WorkloadReference::default()/* use setters */);Sourcepub fn set_or_clear_workload_reference<T>(self, v: Option<T>) -> Selfwhere
T: Into<WorkloadReference>,
pub fn set_or_clear_workload_reference<T>(self, v: Option<T>) -> Selfwhere
T: Into<WorkloadReference>,
Sets or clears the value of workload_reference.
§Example
use google_cloud_apphub_v1::model::WorkloadReference;
let x = DiscoveredWorkload::new().set_or_clear_workload_reference(Some(WorkloadReference::default()/* use setters */));
let x = DiscoveredWorkload::new().set_or_clear_workload_reference(None::<WorkloadReference>);Sourcepub fn set_workload_properties<T>(self, v: T) -> Selfwhere
T: Into<WorkloadProperties>,
pub fn set_workload_properties<T>(self, v: T) -> Selfwhere
T: Into<WorkloadProperties>,
Sets the value of workload_properties.
§Example
use google_cloud_apphub_v1::model::WorkloadProperties;
let x = DiscoveredWorkload::new().set_workload_properties(WorkloadProperties::default()/* use setters */);Sourcepub fn set_or_clear_workload_properties<T>(self, v: Option<T>) -> Selfwhere
T: Into<WorkloadProperties>,
pub fn set_or_clear_workload_properties<T>(self, v: Option<T>) -> Selfwhere
T: Into<WorkloadProperties>,
Sets or clears the value of workload_properties.
§Example
use google_cloud_apphub_v1::model::WorkloadProperties;
let x = DiscoveredWorkload::new().set_or_clear_workload_properties(Some(WorkloadProperties::default()/* use setters */));
let x = DiscoveredWorkload::new().set_or_clear_workload_properties(None::<WorkloadProperties>);Trait Implementations§
Source§impl Clone for DiscoveredWorkload
impl Clone for DiscoveredWorkload
Source§fn clone(&self) -> DiscoveredWorkload
fn clone(&self) -> DiscoveredWorkload
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for DiscoveredWorkload
impl Debug for DiscoveredWorkload
Source§impl Default for DiscoveredWorkload
impl Default for DiscoveredWorkload
Source§fn default() -> DiscoveredWorkload
fn default() -> DiscoveredWorkload
Source§impl Message for DiscoveredWorkload
impl Message for DiscoveredWorkload
Source§impl PartialEq for DiscoveredWorkload
impl PartialEq for DiscoveredWorkload
impl StructuralPartialEq for DiscoveredWorkload
Auto Trait Implementations§
impl Freeze for DiscoveredWorkload
impl RefUnwindSafe for DiscoveredWorkload
impl Send for DiscoveredWorkload
impl Sync for DiscoveredWorkload
impl Unpin for DiscoveredWorkload
impl UnsafeUnpin for DiscoveredWorkload
impl UnwindSafe for DiscoveredWorkload
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
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>
T in a tonic::Request