#[non_exhaustive]pub struct CreateContentRequest {
pub parent: String,
pub content: Option<Content>,
pub validate_only: bool,
/* private fields */
}Expand description
Create content request.
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.parent: StringRequired. The resource name of the parent lake: projects/{project_id}/locations/{location_id}/lakes/{lake_id}
content: Option<Content>Required. Content resource.
validate_only: boolOptional. Only validate the request, but do not perform mutations. The default is false.
Implementations§
Source§impl CreateContentRequest
impl CreateContentRequest
pub fn new() -> Self
Sourcepub fn set_parent<T: Into<String>>(self, v: T) -> Self
pub fn set_parent<T: Into<String>>(self, v: T) -> Self
Sets the value of parent.
Sourcepub fn set_content<T>(self, v: T) -> Self
pub fn set_content<T>(self, v: T) -> Self
Sets the value of content.
Sourcepub fn set_or_clear_content<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_content<T>(self, v: Option<T>) -> Self
Sets or clears the value of content.
Sourcepub fn set_validate_only<T: Into<bool>>(self, v: T) -> Self
pub fn set_validate_only<T: Into<bool>>(self, v: T) -> Self
Sets the value of validate_only.
Trait Implementations§
Source§impl Clone for CreateContentRequest
impl Clone for CreateContentRequest
Source§fn clone(&self) -> CreateContentRequest
fn clone(&self) -> CreateContentRequest
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 CreateContentRequest
impl Debug for CreateContentRequest
Source§impl Default for CreateContentRequest
impl Default for CreateContentRequest
Source§fn default() -> CreateContentRequest
fn default() -> CreateContentRequest
Returns the “default value” for a type. Read more
Source§impl Message for CreateContentRequest
impl Message for CreateContentRequest
Source§impl PartialEq for CreateContentRequest
impl PartialEq for CreateContentRequest
impl StructuralPartialEq for CreateContentRequest
Auto Trait Implementations§
impl Freeze for CreateContentRequest
impl RefUnwindSafe for CreateContentRequest
impl Send for CreateContentRequest
impl Sync for CreateContentRequest
impl Unpin for CreateContentRequest
impl UnwindSafe for CreateContentRequest
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