#[non_exhaustive]pub struct CreateVersionMethod {
pub request: Option<CreateVersionRequest>,
/* private fields */
}Expand description
Detailed information about CreateVersion call.
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.request: Option<CreateVersionRequest>Create version request.
Implementations§
Source§impl CreateVersionMethod
impl CreateVersionMethod
pub fn new() -> Self
Sourcepub fn set_request<T>(self, v: T) -> Selfwhere
T: Into<CreateVersionRequest>,
pub fn set_request<T>(self, v: T) -> Selfwhere
T: Into<CreateVersionRequest>,
Sourcepub fn set_or_clear_request<T>(self, v: Option<T>) -> Selfwhere
T: Into<CreateVersionRequest>,
pub fn set_or_clear_request<T>(self, v: Option<T>) -> Selfwhere
T: Into<CreateVersionRequest>,
Sets or clears the value of request.
§Example
ⓘ
use google_cloud_appengine_v1::model::CreateVersionRequest;
let x = CreateVersionMethod::new().set_or_clear_request(Some(CreateVersionRequest::default()/* use setters */));
let x = CreateVersionMethod::new().set_or_clear_request(None::<CreateVersionRequest>);Trait Implementations§
Source§impl Clone for CreateVersionMethod
impl Clone for CreateVersionMethod
Source§fn clone(&self) -> CreateVersionMethod
fn clone(&self) -> CreateVersionMethod
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 CreateVersionMethod
impl Debug for CreateVersionMethod
Source§impl Default for CreateVersionMethod
impl Default for CreateVersionMethod
Source§fn default() -> CreateVersionMethod
fn default() -> CreateVersionMethod
Returns the “default value” for a type. Read more
Source§impl Message for CreateVersionMethod
impl Message for CreateVersionMethod
Source§impl PartialEq for CreateVersionMethod
impl PartialEq for CreateVersionMethod
impl StructuralPartialEq for CreateVersionMethod
Auto Trait Implementations§
impl Freeze for CreateVersionMethod
impl RefUnwindSafe for CreateVersionMethod
impl Send for CreateVersionMethod
impl Sync for CreateVersionMethod
impl Unpin for CreateVersionMethod
impl UnwindSafe for CreateVersionMethod
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