pub struct ReaderRequest { /* private fields */ }Expand description
Request for POST /reader.
Implementations§
Source§impl ReaderRequest
impl ReaderRequest
Sourcepub fn with_timeout_seconds(self, timeout: u64) -> Self
pub fn with_timeout_seconds(self, timeout: u64) -> Self
Set the upstream request timeout in seconds.
Sourcepub fn with_cache_disabled(self, disabled: bool) -> Self
pub fn with_cache_disabled(self, disabled: bool) -> Self
Configure cache bypass.
Sourcepub fn with_return_format(self, format: impl Into<String>) -> Self
pub fn with_return_format(self, format: impl Into<String>) -> Self
Set the requested output format, such as markdown or text.
Sourcepub fn with_retained_images(self, retain: bool) -> Self
pub fn with_retained_images(self, retain: bool) -> Self
Configure whether images remain in the parsed content.
Sourcepub fn with_gfm_disabled(self, disabled: bool) -> Self
pub fn with_gfm_disabled(self, disabled: bool) -> Self
Configure GitHub-Flavored Markdown conversion.
Sourcepub fn with_image_data_urls(self, keep: bool) -> Self
pub fn with_image_data_urls(self, keep: bool) -> Self
Configure whether image data URLs are preserved.
Sourcepub fn with_image_summaries(self, enabled: bool) -> Self
pub fn with_image_summaries(self, enabled: bool) -> Self
Configure image summaries.
Sourcepub fn with_link_summaries(self, enabled: bool) -> Self
pub fn with_link_summaries(self, enabled: bool) -> Self
Configure link summaries.
Sourcepub const fn timeout_seconds(&self) -> Option<u64>
pub const fn timeout_seconds(&self) -> Option<u64>
Return the configured timeout in seconds.
Sourcepub fn return_format(&self) -> Option<&str>
pub fn return_format(&self) -> Option<&str>
Borrow the requested return format.
Sourcepub const fn cache_disabled(&self) -> Option<bool>
pub const fn cache_disabled(&self) -> Option<bool>
Return whether cache bypass was configured.
Sourcepub const fn retained_images(&self) -> Option<bool>
pub const fn retained_images(&self) -> Option<bool>
Return whether parsed images are retained.
Sourcepub const fn gfm_disabled(&self) -> Option<bool>
pub const fn gfm_disabled(&self) -> Option<bool>
Return whether GitHub-Flavored Markdown is disabled.
Sourcepub const fn keeps_image_data_urls(&self) -> Option<bool>
pub const fn keeps_image_data_urls(&self) -> Option<bool>
Return whether image data URLs are preserved.
Sourcepub const fn image_summaries_enabled(&self) -> Option<bool>
pub const fn image_summaries_enabled(&self) -> Option<bool>
Return whether image summaries are requested.
Sourcepub const fn link_summaries_enabled(&self) -> Option<bool>
pub const fn link_summaries_enabled(&self) -> Option<bool>
Return whether link summaries are requested.
Sourcepub async fn send_via(&self, client: &ZaiClient) -> ZaiResult<ReaderResponse>
pub async fn send_via(&self, client: &ZaiClient) -> ZaiResult<ReaderResponse>
Validate, send, and decode a reader response.
Trait Implementations§
Source§impl Clone for ReaderRequest
impl Clone for ReaderRequest
Source§fn clone(&self) -> ReaderRequest
fn clone(&self) -> ReaderRequest
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 ReaderRequest
impl Debug for ReaderRequest
Auto Trait Implementations§
impl Freeze for ReaderRequest
impl RefUnwindSafe for ReaderRequest
impl Send for ReaderRequest
impl Sync for ReaderRequest
impl Unpin for ReaderRequest
impl UnsafeUnpin for ReaderRequest
impl UnwindSafe for ReaderRequest
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