#[non_exhaustive]pub struct StructuredDocumentInfo {
pub document: String,
pub struct_data: Option<Struct>,
pub title: String,
pub uri: String,
/* private fields */
}Available on crate features
conversational-search-service or session-service only.Expand description
Structured search 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.document: StringDocument resource name.
struct_data: Option<Struct>Structured search data.
title: StringOutput only. The title of the document.
uri: StringOutput only. The URI of the document.
Implementations§
Source§impl StructuredDocumentInfo
impl StructuredDocumentInfo
pub fn new() -> Self
Sourcepub fn set_document<T: Into<String>>(self, v: T) -> Self
pub fn set_document<T: Into<String>>(self, v: T) -> Self
Sourcepub fn set_struct_data<T>(self, v: T) -> Self
pub fn set_struct_data<T>(self, v: T) -> Self
Sets the value of struct_data.
§Example
ⓘ
use wkt::Struct;
let x = StructuredDocumentInfo::new().set_struct_data(Struct::default()/* use setters */);Sourcepub fn set_or_clear_struct_data<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_struct_data<T>(self, v: Option<T>) -> Self
Sets or clears the value of struct_data.
§Example
ⓘ
use wkt::Struct;
let x = StructuredDocumentInfo::new().set_or_clear_struct_data(Some(Struct::default()/* use setters */));
let x = StructuredDocumentInfo::new().set_or_clear_struct_data(None::<Struct>);Trait Implementations§
Source§impl Clone for StructuredDocumentInfo
impl Clone for StructuredDocumentInfo
Source§fn clone(&self) -> StructuredDocumentInfo
fn clone(&self) -> StructuredDocumentInfo
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 StructuredDocumentInfo
impl Debug for StructuredDocumentInfo
Source§impl Default for StructuredDocumentInfo
impl Default for StructuredDocumentInfo
Source§fn default() -> StructuredDocumentInfo
fn default() -> StructuredDocumentInfo
Returns the “default value” for a type. Read more
Source§impl Message for StructuredDocumentInfo
impl Message for StructuredDocumentInfo
Source§impl PartialEq for StructuredDocumentInfo
impl PartialEq for StructuredDocumentInfo
impl StructuralPartialEq for StructuredDocumentInfo
Auto Trait Implementations§
impl Freeze for StructuredDocumentInfo
impl RefUnwindSafe for StructuredDocumentInfo
impl Send for StructuredDocumentInfo
impl Sync for StructuredDocumentInfo
impl Unpin for StructuredDocumentInfo
impl UnwindSafe for StructuredDocumentInfo
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