pub struct ExportResponse {Show 19 fields
pub err: i32,
pub q: Option<String>,
pub msg: Option<String>,
pub url_id: Option<String>,
pub slug: Option<String>,
pub meta: Option<FicMeta>,
pub hashes: Option<Map<String, Value>>,
pub urls: Option<ExportUrls>,
pub epub_url: Option<String>,
pub html_url: Option<String>,
pub txt_url: Option<String>,
pub md_url: Option<String>,
pub mobi_url: Option<String>,
pub pdf_url: Option<String>,
pub azw3_url: Option<String>,
pub docx_url: Option<String>,
pub fb2_url: Option<String>,
pub kepub_url: Option<String>,
pub notes: Option<Vec<String>>,
}Expand description
Response from GET /api/epub?q= and GET /api/meta?q=.
Fields§
§err: i32Error code (0 = success).
q: Option<String>Echoed query, when present.
msg: Option<String>Error/notice message, when present.
url_id: Option<String>FicHub url id of the work.
slug: Option<String>URL slug, when present.
meta: Option<FicMeta>Fic metadata, when the API returned it.
hashes: Option<Map<String, Value>>Per-format content hashes, when present.
urls: Option<ExportUrls>Structured download URLs (newer API shape).
epub_url: Option<String>Legacy flat EPUB URL (older API shape).
html_url: Option<String>Legacy flat HTML URL (older API shape).
txt_url: Option<String>Legacy flat TXT URL (older API shape).
md_url: Option<String>Legacy flat MD URL (older API shape).
mobi_url: Option<String>Legacy flat MOBI URL (older API shape).
pdf_url: Option<String>Legacy flat PDF URL (older API shape).
azw3_url: Option<String>Legacy flat AZW3 URL (older API shape).
docx_url: Option<String>Legacy flat DOCX URL (older API shape).
fb2_url: Option<String>Legacy flat FB2 URL (older API shape).
kepub_url: Option<String>Legacy flat KEPUB URL (older API shape).
notes: Option<Vec<String>>Download notes, when present.
Implementations§
Source§impl ExportResponse
impl ExportResponse
Sourcepub fn flat_urls(&self) -> ExportUrls
pub fn flat_urls(&self) -> ExportUrls
Build a flat ExportUrls from the *_url fields (older API shape).
Trait Implementations§
Source§impl Clone for ExportResponse
impl Clone for ExportResponse
Source§fn clone(&self) -> ExportResponse
fn clone(&self) -> ExportResponse
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for ExportResponse
impl Debug for ExportResponse
Source§impl<'de> Deserialize<'de> for ExportResponse
impl<'de> Deserialize<'de> for ExportResponse
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>,
Auto Trait Implementations§
impl Freeze for ExportResponse
impl RefUnwindSafe for ExportResponse
impl Send for ExportResponse
impl Sync for ExportResponse
impl Unpin for ExportResponse
impl UnsafeUnpin for ExportResponse
impl UnwindSafe for ExportResponse
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
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> 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> ⓘ
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> ⓘ
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