#[non_exhaustive]pub struct CalendarModeRequest {
pub project: String,
pub region: String,
pub body: Option<CalendarModeAdviceRequest>,
/* private fields */
}Available on crate feature
advice only.Expand description
Synthetic request message for the calendarMode() method.
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.project: StringProject ID for this request.
region: StringName of the region for this request.
body: Option<CalendarModeAdviceRequest>Synthetic request body field for the calendarMode() method.
Implementations§
Source§impl CalendarModeRequest
impl CalendarModeRequest
pub fn new() -> Self
Sourcepub fn set_project<T: Into<String>>(self, v: T) -> Self
pub fn set_project<T: Into<String>>(self, v: T) -> Self
Sourcepub fn set_region<T: Into<String>>(self, v: T) -> Self
pub fn set_region<T: Into<String>>(self, v: T) -> Self
Sourcepub fn set_body<T>(self, v: T) -> Selfwhere
T: Into<CalendarModeAdviceRequest>,
pub fn set_body<T>(self, v: T) -> Selfwhere
T: Into<CalendarModeAdviceRequest>,
Sourcepub fn set_or_clear_body<T>(self, v: Option<T>) -> Selfwhere
T: Into<CalendarModeAdviceRequest>,
pub fn set_or_clear_body<T>(self, v: Option<T>) -> Selfwhere
T: Into<CalendarModeAdviceRequest>,
Sets or clears the value of body.
§Example
ⓘ
use google_cloud_compute_v1::model::CalendarModeAdviceRequest;
let x = CalendarModeRequest::new().set_or_clear_body(Some(CalendarModeAdviceRequest::default()/* use setters */));
let x = CalendarModeRequest::new().set_or_clear_body(None::<CalendarModeAdviceRequest>);Trait Implementations§
Source§impl Clone for CalendarModeRequest
impl Clone for CalendarModeRequest
Source§fn clone(&self) -> CalendarModeRequest
fn clone(&self) -> CalendarModeRequest
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 CalendarModeRequest
impl Debug for CalendarModeRequest
Source§impl Default for CalendarModeRequest
impl Default for CalendarModeRequest
Source§fn default() -> CalendarModeRequest
fn default() -> CalendarModeRequest
Returns the “default value” for a type. Read more
Source§impl PartialEq for CalendarModeRequest
impl PartialEq for CalendarModeRequest
impl StructuralPartialEq for CalendarModeRequest
Auto Trait Implementations§
impl Freeze for CalendarModeRequest
impl RefUnwindSafe for CalendarModeRequest
impl Send for CalendarModeRequest
impl Sync for CalendarModeRequest
impl Unpin for CalendarModeRequest
impl UnwindSafe for CalendarModeRequest
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