#[non_exhaustive]pub struct CreateProductSetRequest {
pub parent: String,
pub product_set: Option<ProductSet>,
pub product_set_id: String,
/* private fields */
}Expand description
Request message for the CreateProductSet 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 project in which the ProductSet should be created.
Format is projects/PROJECT_ID/locations/LOC_ID.
product_set: Option<ProductSet>Required. The ProductSet to create.
product_set_id: StringA user-supplied resource id for this ProductSet. If set, the server will
attempt to use this value as the resource id. If it is already in use, an
error is returned with code ALREADY_EXISTS. Must be at most 128 characters
long. It cannot contain the character /.
Implementations§
Source§impl CreateProductSetRequest
impl CreateProductSetRequest
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
Sets the value of parent.
Sourcepub fn set_product_set<T>(self, v: T) -> Selfwhere
T: Into<ProductSet>,
pub fn set_product_set<T>(self, v: T) -> Selfwhere
T: Into<ProductSet>,
Sets the value of product_set.
Sourcepub fn set_or_clear_product_set<T>(self, v: Option<T>) -> Selfwhere
T: Into<ProductSet>,
pub fn set_or_clear_product_set<T>(self, v: Option<T>) -> Selfwhere
T: Into<ProductSet>,
Sets or clears the value of product_set.
Sourcepub fn set_product_set_id<T: Into<String>>(self, v: T) -> Self
pub fn set_product_set_id<T: Into<String>>(self, v: T) -> Self
Sets the value of product_set_id.
Trait Implementations§
Source§impl Clone for CreateProductSetRequest
impl Clone for CreateProductSetRequest
Source§fn clone(&self) -> CreateProductSetRequest
fn clone(&self) -> CreateProductSetRequest
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 CreateProductSetRequest
impl Debug for CreateProductSetRequest
Source§impl Default for CreateProductSetRequest
impl Default for CreateProductSetRequest
Source§fn default() -> CreateProductSetRequest
fn default() -> CreateProductSetRequest
Returns the “default value” for a type. Read more
Source§impl Message for CreateProductSetRequest
impl Message for CreateProductSetRequest
Source§impl PartialEq for CreateProductSetRequest
impl PartialEq for CreateProductSetRequest
impl StructuralPartialEq for CreateProductSetRequest
Auto Trait Implementations§
impl Freeze for CreateProductSetRequest
impl RefUnwindSafe for CreateProductSetRequest
impl Send for CreateProductSetRequest
impl Sync for CreateProductSetRequest
impl Unpin for CreateProductSetRequest
impl UnwindSafe for CreateProductSetRequest
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