#[non_exhaustive]pub struct MoveAnalysis {
pub display_name: String,
pub result: Option<Result>,
/* private fields */
}Expand description
A message to group the analysis information.
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.display_name: StringThe user friendly display name of the analysis. E.g. IAM, organization policy etc.
result: Option<Result>Implementations§
Source§impl MoveAnalysis
impl MoveAnalysis
pub fn new() -> Self
Sourcepub fn set_display_name<T: Into<String>>(self, v: T) -> Self
pub fn set_display_name<T: Into<String>>(self, v: T) -> Self
Sourcepub fn set_result<T: Into<Option<Result>>>(self, v: T) -> Self
pub fn set_result<T: Into<Option<Result>>>(self, v: T) -> Self
Sets the value of result.
Note that all the setters affecting result are mutually
exclusive.
§Example
ⓘ
use google_cloud_asset_v1::model::MoveAnalysisResult;
let x = MoveAnalysis::new().set_result(Some(
google_cloud_asset_v1::model::move_analysis::Result::Analysis(MoveAnalysisResult::default().into())));Sourcepub fn analysis(&self) -> Option<&Box<MoveAnalysisResult>>
pub fn analysis(&self) -> Option<&Box<MoveAnalysisResult>>
The value of result
if it holds a Analysis, None if the field is not set or
holds a different branch.
Sourcepub fn set_analysis<T: Into<Box<MoveAnalysisResult>>>(self, v: T) -> Self
pub fn set_analysis<T: Into<Box<MoveAnalysisResult>>>(self, v: T) -> Self
Sets the value of result
to hold a Analysis.
Note that all the setters affecting result are
mutually exclusive.
§Example
ⓘ
use google_cloud_asset_v1::model::MoveAnalysisResult;
let x = MoveAnalysis::new().set_analysis(MoveAnalysisResult::default()/* use setters */);
assert!(x.analysis().is_some());
assert!(x.error().is_none());Sourcepub fn error(&self) -> Option<&Box<Status>>
pub fn error(&self) -> Option<&Box<Status>>
The value of result
if it holds a Error, None if the field is not set or
holds a different branch.
Trait Implementations§
Source§impl Clone for MoveAnalysis
impl Clone for MoveAnalysis
Source§fn clone(&self) -> MoveAnalysis
fn clone(&self) -> MoveAnalysis
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 MoveAnalysis
impl Debug for MoveAnalysis
Source§impl Default for MoveAnalysis
impl Default for MoveAnalysis
Source§fn default() -> MoveAnalysis
fn default() -> MoveAnalysis
Returns the “default value” for a type. Read more
Source§impl Message for MoveAnalysis
impl Message for MoveAnalysis
Source§impl PartialEq for MoveAnalysis
impl PartialEq for MoveAnalysis
impl StructuralPartialEq for MoveAnalysis
Auto Trait Implementations§
impl Freeze for MoveAnalysis
impl RefUnwindSafe for MoveAnalysis
impl Send for MoveAnalysis
impl Sync for MoveAnalysis
impl Unpin for MoveAnalysis
impl UnsafeUnpin for MoveAnalysis
impl UnwindSafe for MoveAnalysis
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