#[non_exhaustive]pub struct DocumentReference {
pub document_chunk: Option<DocumentChunk>,
/* private fields */
}Expand description
Represents a reference to a document.
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_chunk: Option<DocumentChunk>Output only. Contains the document chunk. The document_chunk.id field
is not set and will be empty.
Implementations§
Source§impl DocumentReference
impl DocumentReference
Sourcepub fn set_document_chunk<T>(self, v: T) -> Selfwhere
T: Into<DocumentChunk>,
pub fn set_document_chunk<T>(self, v: T) -> Selfwhere
T: Into<DocumentChunk>,
Sets the value of document_chunk.
§Example
ⓘ
use google_developers_knowledge_v1::model::DocumentChunk;
let x = DocumentReference::new().set_document_chunk(DocumentChunk::default()/* use setters */);Sourcepub fn set_or_clear_document_chunk<T>(self, v: Option<T>) -> Selfwhere
T: Into<DocumentChunk>,
pub fn set_or_clear_document_chunk<T>(self, v: Option<T>) -> Selfwhere
T: Into<DocumentChunk>,
Sets or clears the value of document_chunk.
§Example
ⓘ
use google_developers_knowledge_v1::model::DocumentChunk;
let x = DocumentReference::new().set_or_clear_document_chunk(Some(DocumentChunk::default()/* use setters */));
let x = DocumentReference::new().set_or_clear_document_chunk(None::<DocumentChunk>);Trait Implementations§
Source§impl Clone for DocumentReference
impl Clone for DocumentReference
Source§fn clone(&self) -> DocumentReference
fn clone(&self) -> DocumentReference
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 DocumentReference
impl Debug for DocumentReference
Source§impl Default for DocumentReference
impl Default for DocumentReference
Source§fn default() -> DocumentReference
fn default() -> DocumentReference
Returns the “default value” for a type. Read more
Source§impl Message for DocumentReference
impl Message for DocumentReference
Source§impl PartialEq for DocumentReference
impl PartialEq for DocumentReference
impl StructuralPartialEq for DocumentReference
Auto Trait Implementations§
impl Freeze for DocumentReference
impl RefUnwindSafe for DocumentReference
impl Send for DocumentReference
impl Sync for DocumentReference
impl Unpin for DocumentReference
impl UnsafeUnpin for DocumentReference
impl UnwindSafe for DocumentReference
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