pub struct WorkspaceReadPdfPagesSuccess {
pub ok: bool,
pub tool: String,
pub kind: String,
pub path: String,
pub total_pages: usize,
pub rendered_pages: Vec<usize>,
pub source_bytes: usize,
pub total_png_bytes: usize,
}Expand description
Structured success envelope produced by read_file when rendering PDF pages as images.
Fields§
§ok: boolAlways true for a successful PDF page render.
tool: StringStable tool name (read_file).
kind: StringContent kind discriminant (pdf_pages).
path: StringNormalized display path.
total_pages: usizeTotal number of pages in the PDF document.
rendered_pages: Vec<usize>One-based page numbers rendered and attached in order.
source_bytes: usizeSource PDF file size in bytes.
total_png_bytes: usizeCombined PNG byte size of all attached page images.
Trait Implementations§
Source§impl Clone for WorkspaceReadPdfPagesSuccess
impl Clone for WorkspaceReadPdfPagesSuccess
Source§impl Debug for WorkspaceReadPdfPagesSuccess
impl Debug for WorkspaceReadPdfPagesSuccess
Source§impl<'de> Deserialize<'de> for WorkspaceReadPdfPagesSuccess
impl<'de> Deserialize<'de> for WorkspaceReadPdfPagesSuccess
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
impl Eq for WorkspaceReadPdfPagesSuccess
impl StructuralPartialEq for WorkspaceReadPdfPagesSuccess
Auto Trait Implementations§
impl Forget for WorkspaceReadPdfPagesSuccess
impl Freeze for WorkspaceReadPdfPagesSuccess
impl Move for WorkspaceReadPdfPagesSuccess
impl RefUnwindSafe for WorkspaceReadPdfPagesSuccess
impl Send for WorkspaceReadPdfPagesSuccesswhere
RawVecInner: Send,
impl Sync for WorkspaceReadPdfPagesSuccesswhere
RawVecInner: Sync,
impl Unpin for WorkspaceReadPdfPagesSuccess
impl UnsafeUnpin for WorkspaceReadPdfPagesSuccesswhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<usize>: UnsafeUnpin,
impl UnwindSafe for WorkspaceReadPdfPagesSuccesswhere
RawVecInner: UnwindSafe,
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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<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.