#[non_exhaustive]pub struct CreateGlossaryTermRequest {
pub parent: String,
pub term_id: String,
pub term: Option<GlossaryTerm>,
/* private fields */
}Expand description
Creates a new GlossaryTerm 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 the GlossaryTerm will be created.
Format:
projects/{project_id_or_number}/locations/{location_id}/glossaries/{glossary_id}
where location_id refers to a Google Cloud region.
term_id: StringRequired. GlossaryTerm identifier.
term: Option<GlossaryTerm>Required. The GlossaryTerm to create.
Implementations§
Source§impl CreateGlossaryTermRequest
impl CreateGlossaryTermRequest
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_term_id<T: Into<String>>(self, v: T) -> Self
pub fn set_term_id<T: Into<String>>(self, v: T) -> Self
Sets the value of term_id.
Sourcepub fn set_term<T>(self, v: T) -> Selfwhere
T: Into<GlossaryTerm>,
pub fn set_term<T>(self, v: T) -> Selfwhere
T: Into<GlossaryTerm>,
Sets the value of term.
Sourcepub fn set_or_clear_term<T>(self, v: Option<T>) -> Selfwhere
T: Into<GlossaryTerm>,
pub fn set_or_clear_term<T>(self, v: Option<T>) -> Selfwhere
T: Into<GlossaryTerm>,
Sets or clears the value of term.
Trait Implementations§
Source§impl Clone for CreateGlossaryTermRequest
impl Clone for CreateGlossaryTermRequest
Source§fn clone(&self) -> CreateGlossaryTermRequest
fn clone(&self) -> CreateGlossaryTermRequest
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 CreateGlossaryTermRequest
impl Debug for CreateGlossaryTermRequest
Source§impl Default for CreateGlossaryTermRequest
impl Default for CreateGlossaryTermRequest
Source§fn default() -> CreateGlossaryTermRequest
fn default() -> CreateGlossaryTermRequest
Returns the “default value” for a type. Read more
Source§impl Message for CreateGlossaryTermRequest
impl Message for CreateGlossaryTermRequest
impl StructuralPartialEq for CreateGlossaryTermRequest
Auto Trait Implementations§
impl Freeze for CreateGlossaryTermRequest
impl RefUnwindSafe for CreateGlossaryTermRequest
impl Send for CreateGlossaryTermRequest
impl Sync for CreateGlossaryTermRequest
impl Unpin for CreateGlossaryTermRequest
impl UnwindSafe for CreateGlossaryTermRequest
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