#[non_exhaustive]pub struct AnnotationMetadata {
pub structured_content: Option<StructuredContent>,
pub image_id: String,
/* private fields */
}Available on crate features
conversational-search-service or search-service only.Expand description
The annotation metadata includes structured content in the current chunk.
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.structured_content: Option<StructuredContent>Output only. The structured content information.
image_id: StringOutput only. Image id is provided if the structured content is based on an image.
Implementations§
Source§impl AnnotationMetadata
impl AnnotationMetadata
pub fn new() -> Self
Sourcepub fn set_structured_content<T>(self, v: T) -> Selfwhere
T: Into<StructuredContent>,
pub fn set_structured_content<T>(self, v: T) -> Selfwhere
T: Into<StructuredContent>,
Sets the value of structured_content.
§Example
ⓘ
use google_cloud_discoveryengine_v1::model::chunk::StructuredContent;
let x = AnnotationMetadata::new().set_structured_content(StructuredContent::default()/* use setters */);Sourcepub fn set_or_clear_structured_content<T>(self, v: Option<T>) -> Selfwhere
T: Into<StructuredContent>,
pub fn set_or_clear_structured_content<T>(self, v: Option<T>) -> Selfwhere
T: Into<StructuredContent>,
Sets or clears the value of structured_content.
§Example
ⓘ
use google_cloud_discoveryengine_v1::model::chunk::StructuredContent;
let x = AnnotationMetadata::new().set_or_clear_structured_content(Some(StructuredContent::default()/* use setters */));
let x = AnnotationMetadata::new().set_or_clear_structured_content(None::<StructuredContent>);Trait Implementations§
Source§impl Clone for AnnotationMetadata
impl Clone for AnnotationMetadata
Source§fn clone(&self) -> AnnotationMetadata
fn clone(&self) -> AnnotationMetadata
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 AnnotationMetadata
impl Debug for AnnotationMetadata
Source§impl Default for AnnotationMetadata
impl Default for AnnotationMetadata
Source§fn default() -> AnnotationMetadata
fn default() -> AnnotationMetadata
Returns the “default value” for a type. Read more
Source§impl Message for AnnotationMetadata
impl Message for AnnotationMetadata
Source§impl PartialEq for AnnotationMetadata
impl PartialEq for AnnotationMetadata
impl StructuralPartialEq for AnnotationMetadata
Auto Trait Implementations§
impl Freeze for AnnotationMetadata
impl RefUnwindSafe for AnnotationMetadata
impl Send for AnnotationMetadata
impl Sync for AnnotationMetadata
impl Unpin for AnnotationMetadata
impl UnwindSafe for AnnotationMetadata
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