#[non_exhaustive]pub struct ValidateRequest {
pub project: String,
pub url_map: String,
pub body: Option<UrlMapsValidateRequest>,
/* private fields */
}Available on crate feature
url-maps only.Expand description
Synthetic request message for the validate() 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.
url_map: StringName of the UrlMap resource to be validated as.
body: Option<UrlMapsValidateRequest>Synthetic request body field for the validate() method.
Implementations§
Source§impl ValidateRequest
impl ValidateRequest
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_url_map<T: Into<String>>(self, v: T) -> Self
pub fn set_url_map<T: Into<String>>(self, v: T) -> Self
Sourcepub fn set_body<T>(self, v: T) -> Selfwhere
T: Into<UrlMapsValidateRequest>,
pub fn set_body<T>(self, v: T) -> Selfwhere
T: Into<UrlMapsValidateRequest>,
Sourcepub fn set_or_clear_body<T>(self, v: Option<T>) -> Selfwhere
T: Into<UrlMapsValidateRequest>,
pub fn set_or_clear_body<T>(self, v: Option<T>) -> Selfwhere
T: Into<UrlMapsValidateRequest>,
Trait Implementations§
Source§impl Clone for ValidateRequest
impl Clone for ValidateRequest
Source§fn clone(&self) -> ValidateRequest
fn clone(&self) -> ValidateRequest
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 ValidateRequest
impl Debug for ValidateRequest
Source§impl Default for ValidateRequest
impl Default for ValidateRequest
Source§fn default() -> ValidateRequest
fn default() -> ValidateRequest
Returns the “default value” for a type. Read more
Source§impl PartialEq for ValidateRequest
impl PartialEq for ValidateRequest
impl StructuralPartialEq for ValidateRequest
Auto Trait Implementations§
impl !Freeze for ValidateRequest
impl RefUnwindSafe for ValidateRequest
impl Send for ValidateRequest
impl Sync for ValidateRequest
impl Unpin for ValidateRequest
impl UnwindSafe for ValidateRequest
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