pub struct ReadOutcome {
pub document_id: String,
pub title: Option<String>,
pub revision_id: Option<String>,
pub tabs: Vec<TabContent>,
}Expand description
The full result of one read.
Fields§
§document_id: StringThe document read.
title: Option<String>Its title, when the response carried one.
revision_id: Option<String>The document’s revision at the moment of the read.
This is the writeControl.requiredRevisionId token a later
documents.batchUpdate presents so a write against a document that
moved underneath it is refused rather than silently misapplied.
Absent when the caller lacks edit access, which Google signals by
omitting it.
tabs: Vec<TabContent>The tabs read, in document order.
Implementations§
Source§impl ReadOutcome
impl ReadOutcome
Sourcepub fn flat_elements(&self) -> Vec<FlatElement<'_>>
pub fn flat_elements(&self) -> Vec<FlatElement<'_>>
Every element across every tab, carrying the identity of the document, tab and (for a header/footer/footnote element) segment that hold it.
This is the -o jsonl projection; see FlatElement.
Trait Implementations§
Source§impl Clone for ReadOutcome
impl Clone for ReadOutcome
Source§impl Debug for ReadOutcome
impl Debug for ReadOutcome
impl Eq for ReadOutcome
Source§impl JsonlSerialize for ReadOutcome
impl JsonlSerialize for ReadOutcome
Source§impl PartialEq for ReadOutcome
impl PartialEq for ReadOutcome
Source§impl Serialize for ReadOutcome
impl Serialize for ReadOutcome
impl StructuralPartialEq for ReadOutcome
Auto Trait Implementations§
impl Freeze for ReadOutcome
impl RefUnwindSafe for ReadOutcome
impl Send for ReadOutcome
impl Sync for ReadOutcome
impl Unpin for ReadOutcome
impl UnsafeUnpin for ReadOutcome
impl UnwindSafe for ReadOutcome
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more