#[non_exhaustive]pub struct Report {
pub name: String,
pub create_time: Option<Timestamp>,
pub update_time: Option<Timestamp>,
pub display_name: String,
pub description: String,
pub type: Type,
pub state: State,
pub summary: Option<ReportSummary>,
/* private fields */
}Expand description
Report represents a point-in-time rendering of the ReportConfig results.
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.name: StringOutput only. Name of resource.
create_time: Option<Timestamp>Output only. Creation timestamp.
update_time: Option<Timestamp>Output only. Last update timestamp.
display_name: StringUser-friendly display name. Maximum length is 63 characters.
description: StringFree-text description.
type: TypeReport type.
state: StateReport creation state.
summary: Option<ReportSummary>Output only. Summary view of the Report.
Implementations§
Source§impl Report
impl Report
pub fn new() -> Self
Sourcepub fn set_create_time<T>(self, v: T) -> Self
pub fn set_create_time<T>(self, v: T) -> Self
Sets the value of create_time.
§Example
ⓘ
use wkt::Timestamp;
let x = Report::new().set_create_time(Timestamp::default()/* use setters */);Sourcepub fn set_or_clear_create_time<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_create_time<T>(self, v: Option<T>) -> Self
Sets or clears the value of create_time.
§Example
ⓘ
use wkt::Timestamp;
let x = Report::new().set_or_clear_create_time(Some(Timestamp::default()/* use setters */));
let x = Report::new().set_or_clear_create_time(None::<Timestamp>);Sourcepub fn set_update_time<T>(self, v: T) -> Self
pub fn set_update_time<T>(self, v: T) -> Self
Sets the value of update_time.
§Example
ⓘ
use wkt::Timestamp;
let x = Report::new().set_update_time(Timestamp::default()/* use setters */);Sourcepub fn set_or_clear_update_time<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_update_time<T>(self, v: Option<T>) -> Self
Sets or clears the value of update_time.
§Example
ⓘ
use wkt::Timestamp;
let x = Report::new().set_or_clear_update_time(Some(Timestamp::default()/* use setters */));
let x = Report::new().set_or_clear_update_time(None::<Timestamp>);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_description<T: Into<String>>(self, v: T) -> Self
pub fn set_description<T: Into<String>>(self, v: T) -> Self
Sourcepub fn set_summary<T>(self, v: T) -> Selfwhere
T: Into<ReportSummary>,
pub fn set_summary<T>(self, v: T) -> Selfwhere
T: Into<ReportSummary>,
Sourcepub fn set_or_clear_summary<T>(self, v: Option<T>) -> Selfwhere
T: Into<ReportSummary>,
pub fn set_or_clear_summary<T>(self, v: Option<T>) -> Selfwhere
T: Into<ReportSummary>,
Trait Implementations§
impl StructuralPartialEq for Report
Auto Trait Implementations§
impl Freeze for Report
impl RefUnwindSafe for Report
impl Send for Report
impl Sync for Report
impl Unpin for Report
impl UnsafeUnpin for Report
impl UnwindSafe for Report
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