#[non_exhaustive]pub struct CreateUrlListRequest {
pub parent: String,
pub url_list_id: String,
pub url_list: Option<UrlList>,
/* private fields */
}Expand description
Request used by the CreateUrlList 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.parent: StringRequired. The parent resource of the UrlList. Must be in
the format projects/*/locations/{location}.
url_list_id: StringRequired. Short name of the UrlList resource to be created. This value should be 1-63 characters long, containing only letters, numbers, hyphens, and underscores, and should not start with a number. E.g. “url_list”.
url_list: Option<UrlList>Required. UrlList resource to be created.
Implementations§
Source§impl CreateUrlListRequest
impl CreateUrlListRequest
pub fn new() -> Self
Sourcepub fn set_parent<T: Into<String>>(self, v: T) -> Self
pub fn set_parent<T: Into<String>>(self, v: T) -> Self
Sourcepub fn set_url_list_id<T: Into<String>>(self, v: T) -> Self
pub fn set_url_list_id<T: Into<String>>(self, v: T) -> Self
Sets the value of url_list_id.
§Example
ⓘ
let x = CreateUrlListRequest::new().set_url_list_id("example");Sourcepub fn set_url_list<T>(self, v: T) -> Self
pub fn set_url_list<T>(self, v: T) -> Self
Sourcepub fn set_or_clear_url_list<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_url_list<T>(self, v: Option<T>) -> Self
Trait Implementations§
Source§impl Clone for CreateUrlListRequest
impl Clone for CreateUrlListRequest
Source§fn clone(&self) -> CreateUrlListRequest
fn clone(&self) -> CreateUrlListRequest
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 CreateUrlListRequest
impl Debug for CreateUrlListRequest
Source§impl Default for CreateUrlListRequest
impl Default for CreateUrlListRequest
Source§fn default() -> CreateUrlListRequest
fn default() -> CreateUrlListRequest
Returns the “default value” for a type. Read more
Source§impl Message for CreateUrlListRequest
impl Message for CreateUrlListRequest
Source§impl PartialEq for CreateUrlListRequest
impl PartialEq for CreateUrlListRequest
impl StructuralPartialEq for CreateUrlListRequest
Auto Trait Implementations§
impl Freeze for CreateUrlListRequest
impl RefUnwindSafe for CreateUrlListRequest
impl Send for CreateUrlListRequest
impl Sync for CreateUrlListRequest
impl Unpin for CreateUrlListRequest
impl UnsafeUnpin for CreateUrlListRequest
impl UnwindSafe for CreateUrlListRequest
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