#[non_exhaustive]pub struct FileContentBuffer {
pub content: Option<Bytes>,
pub file_type: Option<FileType>,
/* private fields */
}Available on crate features
image-family-views or images or instance-templates or instances or machine-images or region-instance-templates or region-instances only.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.content: Option<Bytes>The raw content in the secure keys file.
file_type: Option<FileType>The file type of source file.
Implementations§
Source§impl FileContentBuffer
impl FileContentBuffer
pub fn new() -> Self
Sourcepub fn set_content<T>(self, v: T) -> Self
pub fn set_content<T>(self, v: T) -> Self
Sourcepub fn set_or_clear_content<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_content<T>(self, v: Option<T>) -> Self
Sourcepub fn set_file_type<T>(self, v: T) -> Self
pub fn set_file_type<T>(self, v: T) -> Self
Sourcepub fn set_or_clear_file_type<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_file_type<T>(self, v: Option<T>) -> Self
Sets or clears the value of file_type.
§Example
ⓘ
use google_cloud_compute_v1::model::file_content_buffer::FileType;
let x0 = FileContentBuffer::new().set_or_clear_file_type(Some(FileType::Undefined));
let x1 = FileContentBuffer::new().set_or_clear_file_type(Some(FileType::X509));
let x_none = FileContentBuffer::new().set_or_clear_file_type(None::<FileType>);Trait Implementations§
Source§impl Clone for FileContentBuffer
impl Clone for FileContentBuffer
Source§fn clone(&self) -> FileContentBuffer
fn clone(&self) -> FileContentBuffer
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 FileContentBuffer
impl Debug for FileContentBuffer
Source§impl Default for FileContentBuffer
impl Default for FileContentBuffer
Source§fn default() -> FileContentBuffer
fn default() -> FileContentBuffer
Returns the “default value” for a type. Read more
Source§impl Message for FileContentBuffer
impl Message for FileContentBuffer
Source§impl PartialEq for FileContentBuffer
impl PartialEq for FileContentBuffer
impl StructuralPartialEq for FileContentBuffer
Auto Trait Implementations§
impl !Freeze for FileContentBuffer
impl RefUnwindSafe for FileContentBuffer
impl Send for FileContentBuffer
impl Sync for FileContentBuffer
impl Unpin for FileContentBuffer
impl UnwindSafe for FileContentBuffer
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