#[non_exhaustive]pub struct Screenshot {
pub contents: Option<String>,
pub kind: Option<String>,
/* private fields */
}Available on crate feature
instances only.Expand description
An instance’s screenshot.
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.contents: Option<String>[Output Only] The Base64-encoded screenshot data.
kind: Option<String>Output only. [Output Only] Type of the resource. Always compute#screenshot for the screenshots.
Implementations§
Source§impl Screenshot
impl Screenshot
pub fn new() -> Self
Sourcepub fn set_contents<T>(self, v: T) -> Self
pub fn set_contents<T>(self, v: T) -> Self
Sourcepub fn set_or_clear_contents<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_contents<T>(self, v: Option<T>) -> Self
Trait Implementations§
Source§impl Clone for Screenshot
impl Clone for Screenshot
Source§fn clone(&self) -> Screenshot
fn clone(&self) -> Screenshot
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 Screenshot
impl Debug for Screenshot
Source§impl Default for Screenshot
impl Default for Screenshot
Source§fn default() -> Screenshot
fn default() -> Screenshot
Returns the “default value” for a type. Read more
Source§impl PartialEq for Screenshot
impl PartialEq for Screenshot
impl StructuralPartialEq for Screenshot
Auto Trait Implementations§
impl Freeze for Screenshot
impl RefUnwindSafe for Screenshot
impl Send for Screenshot
impl Sync for Screenshot
impl Unpin for Screenshot
impl UnwindSafe for Screenshot
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