#[non_exhaustive]pub struct StructuredContent {
pub structure_type: StructureType,
pub content: String,
/* private fields */
}Available on crate features
conversational-search-service or search-service only.Expand description
The structured content information.
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.structure_type: StructureTypeOutput only. The structure type of the structured content.
content: StringOutput only. The content of the structured content.
Implementations§
Source§impl StructuredContent
impl StructuredContent
pub fn new() -> Self
Sourcepub fn set_structure_type<T: Into<StructureType>>(self, v: T) -> Self
pub fn set_structure_type<T: Into<StructureType>>(self, v: T) -> Self
Sets the value of structure_type.
§Example
ⓘ
use google_cloud_discoveryengine_v1::model::chunk::StructureType;
let x0 = StructuredContent::new().set_structure_type(StructureType::ShareholderStructure);
let x1 = StructuredContent::new().set_structure_type(StructureType::SignatureStructure);
let x2 = StructuredContent::new().set_structure_type(StructureType::CheckboxStructure);Trait Implementations§
Source§impl Clone for StructuredContent
impl Clone for StructuredContent
Source§fn clone(&self) -> StructuredContent
fn clone(&self) -> StructuredContent
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 StructuredContent
impl Debug for StructuredContent
Source§impl Default for StructuredContent
impl Default for StructuredContent
Source§fn default() -> StructuredContent
fn default() -> StructuredContent
Returns the “default value” for a type. Read more
Source§impl Message for StructuredContent
impl Message for StructuredContent
Source§impl PartialEq for StructuredContent
impl PartialEq for StructuredContent
impl StructuralPartialEq for StructuredContent
Auto Trait Implementations§
impl Freeze for StructuredContent
impl RefUnwindSafe for StructuredContent
impl Send for StructuredContent
impl Sync for StructuredContent
impl Unpin for StructuredContent
impl UnwindSafe for StructuredContent
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