#[non_exhaustive]pub struct UrlMapsValidateResponse {
pub result: Option<UrlMapValidationResult>,
/* private fields */
}Available on crate features
region-url-maps or url-maps 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.result: Option<UrlMapValidationResult>Implementations§
Source§impl UrlMapsValidateResponse
impl UrlMapsValidateResponse
pub fn new() -> Self
Sourcepub fn set_result<T>(self, v: T) -> Selfwhere
T: Into<UrlMapValidationResult>,
pub fn set_result<T>(self, v: T) -> Selfwhere
T: Into<UrlMapValidationResult>,
Sourcepub fn set_or_clear_result<T>(self, v: Option<T>) -> Selfwhere
T: Into<UrlMapValidationResult>,
pub fn set_or_clear_result<T>(self, v: Option<T>) -> Selfwhere
T: Into<UrlMapValidationResult>,
Sets or clears the value of result.
§Example
ⓘ
use google_cloud_compute_v1::model::UrlMapValidationResult;
let x = UrlMapsValidateResponse::new().set_or_clear_result(Some(UrlMapValidationResult::default()/* use setters */));
let x = UrlMapsValidateResponse::new().set_or_clear_result(None::<UrlMapValidationResult>);Trait Implementations§
Source§impl Clone for UrlMapsValidateResponse
impl Clone for UrlMapsValidateResponse
Source§fn clone(&self) -> UrlMapsValidateResponse
fn clone(&self) -> UrlMapsValidateResponse
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 UrlMapsValidateResponse
impl Debug for UrlMapsValidateResponse
Source§impl Default for UrlMapsValidateResponse
impl Default for UrlMapsValidateResponse
Source§fn default() -> UrlMapsValidateResponse
fn default() -> UrlMapsValidateResponse
Returns the “default value” for a type. Read more
Source§impl Message for UrlMapsValidateResponse
impl Message for UrlMapsValidateResponse
Source§impl PartialEq for UrlMapsValidateResponse
impl PartialEq for UrlMapsValidateResponse
impl StructuralPartialEq for UrlMapsValidateResponse
Auto Trait Implementations§
impl Freeze for UrlMapsValidateResponse
impl RefUnwindSafe for UrlMapsValidateResponse
impl Send for UrlMapsValidateResponse
impl Sync for UrlMapsValidateResponse
impl Unpin for UrlMapsValidateResponse
impl UnwindSafe for UrlMapsValidateResponse
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