#[non_exhaustive]pub struct CreateWatchlistRequest {
pub parent: String,
pub watchlist_id: String,
pub watchlist: Option<Watchlist>,
/* private fields */
}Expand description
Request message for creating watchlist.
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 where this watchlist will be created.
Format: projects/{project}/locations/{location}/instances/{instance}
watchlist_id: StringOptional. The ID to use for the watchlist, which will become the final component of the watchlist’s resource name.
This value should be 4-63 characters, and valid characters are /[a-z][0-9]-/.
watchlist: Option<Watchlist>Required. The watchlist to create.
Implementations§
Source§impl CreateWatchlistRequest
impl CreateWatchlistRequest
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_watchlist_id<T: Into<String>>(self, v: T) -> Self
pub fn set_watchlist_id<T: Into<String>>(self, v: T) -> Self
Sets the value of watchlist_id.
§Example
ⓘ
let x = CreateWatchlistRequest::new().set_watchlist_id("example");Sourcepub fn set_watchlist<T>(self, v: T) -> Self
pub fn set_watchlist<T>(self, v: T) -> Self
Sourcepub fn set_or_clear_watchlist<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_watchlist<T>(self, v: Option<T>) -> Self
Trait Implementations§
Source§impl Clone for CreateWatchlistRequest
impl Clone for CreateWatchlistRequest
Source§fn clone(&self) -> CreateWatchlistRequest
fn clone(&self) -> CreateWatchlistRequest
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 CreateWatchlistRequest
impl Debug for CreateWatchlistRequest
Source§impl Default for CreateWatchlistRequest
impl Default for CreateWatchlistRequest
Source§fn default() -> CreateWatchlistRequest
fn default() -> CreateWatchlistRequest
Returns the “default value” for a type. Read more
Source§impl Message for CreateWatchlistRequest
impl Message for CreateWatchlistRequest
Source§impl PartialEq for CreateWatchlistRequest
impl PartialEq for CreateWatchlistRequest
Source§fn eq(&self, other: &CreateWatchlistRequest) -> bool
fn eq(&self, other: &CreateWatchlistRequest) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for CreateWatchlistRequest
Auto Trait Implementations§
impl Freeze for CreateWatchlistRequest
impl RefUnwindSafe for CreateWatchlistRequest
impl Send for CreateWatchlistRequest
impl Sync for CreateWatchlistRequest
impl Unpin for CreateWatchlistRequest
impl UnsafeUnpin for CreateWatchlistRequest
impl UnwindSafe for CreateWatchlistRequest
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