#[non_exhaustive]pub struct CreateGlossaryRequest {
pub parent: String,
pub glossary_id: String,
pub glossary: Option<Glossary>,
pub validate_only: bool,
/* private fields */
}Expand description
Create Glossary Request
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 Glossary will be created.
Format: projects/{project_id_or_number}/locations/{location_id}
where location_id refers to a Google Cloud region.
glossary_id: StringRequired. Glossary ID: Glossary identifier.
glossary: Option<Glossary>Required. The Glossary to create.
validate_only: boolOptional. Validates the request without actually creating the Glossary. Default: false.
Implementations§
Source§impl CreateGlossaryRequest
impl CreateGlossaryRequest
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_glossary_id<T: Into<String>>(self, v: T) -> Self
pub fn set_glossary_id<T: Into<String>>(self, v: T) -> Self
Sets the value of glossary_id.
Sourcepub fn set_glossary<T>(self, v: T) -> Self
pub fn set_glossary<T>(self, v: T) -> Self
Sets the value of glossary.
Sourcepub fn set_or_clear_glossary<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_glossary<T>(self, v: Option<T>) -> Self
Sets or clears the value of glossary.
Sourcepub fn set_validate_only<T: Into<bool>>(self, v: T) -> Self
pub fn set_validate_only<T: Into<bool>>(self, v: T) -> Self
Sets the value of validate_only.
Trait Implementations§
Source§impl Clone for CreateGlossaryRequest
impl Clone for CreateGlossaryRequest
Source§fn clone(&self) -> CreateGlossaryRequest
fn clone(&self) -> CreateGlossaryRequest
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 CreateGlossaryRequest
impl Debug for CreateGlossaryRequest
Source§impl Default for CreateGlossaryRequest
impl Default for CreateGlossaryRequest
Source§fn default() -> CreateGlossaryRequest
fn default() -> CreateGlossaryRequest
Returns the “default value” for a type. Read more
Source§impl Message for CreateGlossaryRequest
impl Message for CreateGlossaryRequest
Source§impl PartialEq for CreateGlossaryRequest
impl PartialEq for CreateGlossaryRequest
impl StructuralPartialEq for CreateGlossaryRequest
Auto Trait Implementations§
impl Freeze for CreateGlossaryRequest
impl RefUnwindSafe for CreateGlossaryRequest
impl Send for CreateGlossaryRequest
impl Sync for CreateGlossaryRequest
impl Unpin for CreateGlossaryRequest
impl UnwindSafe for CreateGlossaryRequest
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