#[non_exhaustive]pub struct AddCatalogAttributeRequest {
pub attributes_config: String,
pub catalog_attribute: Option<CatalogAttribute>,
/* private fields */
}Expand description
Request for CatalogService.AddCatalogAttribute 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.attributes_config: StringRequired. Full AttributesConfig resource name. Format:
projects/{project_number}/locations/{location_id}/catalogs/{catalog_id}/attributesConfig
catalog_attribute: Option<CatalogAttribute>Required. The CatalogAttribute to add.
Implementations§
Source§impl AddCatalogAttributeRequest
impl AddCatalogAttributeRequest
Sourcepub fn set_attributes_config<T: Into<String>>(self, v: T) -> Self
pub fn set_attributes_config<T: Into<String>>(self, v: T) -> Self
Sets the value of attributes_config.
§Example
ⓘ
let x = AddCatalogAttributeRequest::new().set_attributes_config("example");Sourcepub fn set_catalog_attribute<T>(self, v: T) -> Selfwhere
T: Into<CatalogAttribute>,
pub fn set_catalog_attribute<T>(self, v: T) -> Selfwhere
T: Into<CatalogAttribute>,
Sets the value of catalog_attribute.
§Example
ⓘ
use google_cloud_retail_v2::model::CatalogAttribute;
let x = AddCatalogAttributeRequest::new().set_catalog_attribute(CatalogAttribute::default()/* use setters */);Sourcepub fn set_or_clear_catalog_attribute<T>(self, v: Option<T>) -> Selfwhere
T: Into<CatalogAttribute>,
pub fn set_or_clear_catalog_attribute<T>(self, v: Option<T>) -> Selfwhere
T: Into<CatalogAttribute>,
Sets or clears the value of catalog_attribute.
§Example
ⓘ
use google_cloud_retail_v2::model::CatalogAttribute;
let x = AddCatalogAttributeRequest::new().set_or_clear_catalog_attribute(Some(CatalogAttribute::default()/* use setters */));
let x = AddCatalogAttributeRequest::new().set_or_clear_catalog_attribute(None::<CatalogAttribute>);Trait Implementations§
Source§impl Clone for AddCatalogAttributeRequest
impl Clone for AddCatalogAttributeRequest
Source§fn clone(&self) -> AddCatalogAttributeRequest
fn clone(&self) -> AddCatalogAttributeRequest
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 AddCatalogAttributeRequest
impl Debug for AddCatalogAttributeRequest
Source§impl Default for AddCatalogAttributeRequest
impl Default for AddCatalogAttributeRequest
Source§fn default() -> AddCatalogAttributeRequest
fn default() -> AddCatalogAttributeRequest
Returns the “default value” for a type. Read more
Source§impl Message for AddCatalogAttributeRequest
impl Message for AddCatalogAttributeRequest
impl StructuralPartialEq for AddCatalogAttributeRequest
Auto Trait Implementations§
impl Freeze for AddCatalogAttributeRequest
impl RefUnwindSafe for AddCatalogAttributeRequest
impl Send for AddCatalogAttributeRequest
impl Sync for AddCatalogAttributeRequest
impl Unpin for AddCatalogAttributeRequest
impl UnsafeUnpin for AddCatalogAttributeRequest
impl UnwindSafe for AddCatalogAttributeRequest
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