pub struct DocumentRead {
pub format: Format,
pub sha256: String,
pub size_bytes: u64,
pub text: String,
pub markdown: Option<String>,
pub truncated: bool,
pub content: Content,
pub omitted: Vec<String>,
}Fields§
§format: Format§sha256: StringSHA-256 of the exact bytes read. Pass it back as expect_sha256 to make an edit refuse a
file that changed in between.
size_bytes: u64§text: StringPlain-text rendering, capped at max_chars.
markdown: Option<String>§truncated: boolA cap (max_chars, max_cells) cut the result short.
content: Content§omitted: Vec<String>What the file holds that this read does not represent (comments, tracked changes,
footnotes, images, charts, external links not followed…). Never empty by omission: if
something is not in content, it is named here.
Trait Implementations§
Source§impl Clone for DocumentRead
impl Clone for DocumentRead
Source§impl Debug for DocumentRead
impl Debug for DocumentRead
Source§impl<'de> Deserialize<'de> for DocumentRead
impl<'de> Deserialize<'de> for DocumentRead
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for DocumentRead
impl RefUnwindSafe for DocumentRead
impl Send for DocumentRead
impl Sync for DocumentRead
impl Unpin for DocumentRead
impl UnsafeUnpin for DocumentRead
impl UnwindSafe for DocumentRead
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,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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 moreSource§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<U, T> ToOwnedObj<U> for Twhere
U: FromObjRef<T>,
impl<U, T> ToOwnedObj<U> for Twhere
U: FromObjRef<T>,
Source§fn to_owned_obj(&self, data: FontData<'_>) -> U
fn to_owned_obj(&self, data: FontData<'_>) -> U
Convert this type into
T, using the provided data to resolve any offsets.