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