#[non_exhaustive]pub struct AppHubWorkload {
pub workload: String,
pub criticality: String,
pub environment: String,
/* private fields */
}Expand description
AppHubWorkload represents the App Hub Workload.
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.workload: StringRequired. Output only. Immutable. The name of the App Hub Workload.
Format:
projects/{project}/locations/{location}/applications/{application}/workloads/{workload}.
criticality: StringOutput only. The criticality of the App Hub Workload.
environment: StringOutput only. The environment of the App Hub Workload.
Implementations§
Source§impl AppHubWorkload
impl AppHubWorkload
pub fn new() -> Self
Sourcepub fn set_workload<T: Into<String>>(self, v: T) -> Self
pub fn set_workload<T: Into<String>>(self, v: T) -> Self
Sets the value of workload.
Sourcepub fn set_criticality<T: Into<String>>(self, v: T) -> Self
pub fn set_criticality<T: Into<String>>(self, v: T) -> Self
Sets the value of criticality.
Sourcepub fn set_environment<T: Into<String>>(self, v: T) -> Self
pub fn set_environment<T: Into<String>>(self, v: T) -> Self
Sets the value of environment.
Trait Implementations§
Source§impl Clone for AppHubWorkload
impl Clone for AppHubWorkload
Source§fn clone(&self) -> AppHubWorkload
fn clone(&self) -> AppHubWorkload
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 AppHubWorkload
impl Debug for AppHubWorkload
Source§impl Default for AppHubWorkload
impl Default for AppHubWorkload
Source§fn default() -> AppHubWorkload
fn default() -> AppHubWorkload
Returns the “default value” for a type. Read more
Source§impl Message for AppHubWorkload
impl Message for AppHubWorkload
Source§impl PartialEq for AppHubWorkload
impl PartialEq for AppHubWorkload
impl StructuralPartialEq for AppHubWorkload
Auto Trait Implementations§
impl Freeze for AppHubWorkload
impl RefUnwindSafe for AppHubWorkload
impl Send for AppHubWorkload
impl Sync for AppHubWorkload
impl Unpin for AppHubWorkload
impl UnwindSafe for AppHubWorkload
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