#[non_exhaustive]pub struct CreateGlossaryCategoryRequest {
pub parent: String,
pub category_id: String,
pub category: Option<GlossaryCategory>,
/* private fields */
}Expand description
Creates a new GlossaryCategory under the specified Glossary.
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 GlossaryCategory will be created.
Format:
projects/{project_id_or_number}/locations/{location_id}/glossaries/{glossary_id}
where locationId refers to a Google Cloud region.
category_id: StringRequired. GlossaryCategory identifier.
category: Option<GlossaryCategory>Required. The GlossaryCategory to create.
Implementations§
Source§impl CreateGlossaryCategoryRequest
impl CreateGlossaryCategoryRequest
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_category_id<T: Into<String>>(self, v: T) -> Self
pub fn set_category_id<T: Into<String>>(self, v: T) -> Self
Sets the value of category_id.
Sourcepub fn set_category<T>(self, v: T) -> Selfwhere
T: Into<GlossaryCategory>,
pub fn set_category<T>(self, v: T) -> Selfwhere
T: Into<GlossaryCategory>,
Sets the value of category.
Sourcepub fn set_or_clear_category<T>(self, v: Option<T>) -> Selfwhere
T: Into<GlossaryCategory>,
pub fn set_or_clear_category<T>(self, v: Option<T>) -> Selfwhere
T: Into<GlossaryCategory>,
Sets or clears the value of category.
Trait Implementations§
Source§impl Clone for CreateGlossaryCategoryRequest
impl Clone for CreateGlossaryCategoryRequest
Source§fn clone(&self) -> CreateGlossaryCategoryRequest
fn clone(&self) -> CreateGlossaryCategoryRequest
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 Default for CreateGlossaryCategoryRequest
impl Default for CreateGlossaryCategoryRequest
Source§fn default() -> CreateGlossaryCategoryRequest
fn default() -> CreateGlossaryCategoryRequest
Returns the “default value” for a type. Read more
Source§impl PartialEq for CreateGlossaryCategoryRequest
impl PartialEq for CreateGlossaryCategoryRequest
Source§fn eq(&self, other: &CreateGlossaryCategoryRequest) -> bool
fn eq(&self, other: &CreateGlossaryCategoryRequest) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for CreateGlossaryCategoryRequest
Auto Trait Implementations§
impl Freeze for CreateGlossaryCategoryRequest
impl RefUnwindSafe for CreateGlossaryCategoryRequest
impl Send for CreateGlossaryCategoryRequest
impl Sync for CreateGlossaryCategoryRequest
impl Unpin for CreateGlossaryCategoryRequest
impl UnwindSafe for CreateGlossaryCategoryRequest
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