pub struct FileParserResultResponse {
pub status: ParserStatus,
pub message: String,
pub task_id: String,
pub content: Option<String>,
pub parsing_result_url: Option<String>,
}Expand description
Response from file parser result retrieval.
Fields§
§status: ParserStatusCurrent processing status of the task
message: StringMessage about the result status
task_id: StringUnique identifier for the parsing task
content: Option<String>Parsed text content (when format_type=text)
parsing_result_url: Option<String>Download link for results (when format_type=download_link)
Implementations§
Source§impl FileParserResultResponse
impl FileParserResultResponse
Sourcepub fn is_success(&self) -> bool
pub fn is_success(&self) -> bool
Check if the task completed successfully.
Sourcepub fn is_processing(&self) -> bool
pub fn is_processing(&self) -> bool
Check if the task is still processing.
Sourcepub fn download_url(&self) -> Option<&str>
pub fn download_url(&self) -> Option<&str>
Get the download URL if available.
Sourcepub fn get_result(&self, format_type: &FormatType) -> Option<&str>
pub fn get_result(&self, format_type: &FormatType) -> Option<&str>
Get the result based on the format type.
Trait Implementations§
Source§impl Clone for FileParserResultResponse
impl Clone for FileParserResultResponse
Source§fn clone(&self) -> FileParserResultResponse
fn clone(&self) -> FileParserResultResponse
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 FileParserResultResponse
impl Debug for FileParserResultResponse
Source§impl<'de> Deserialize<'de> for FileParserResultResponse
impl<'de> Deserialize<'de> for FileParserResultResponse
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 FileParserResultResponse
impl RefUnwindSafe for FileParserResultResponse
impl Send for FileParserResultResponse
impl Sync for FileParserResultResponse
impl Unpin for FileParserResultResponse
impl UnsafeUnpin for FileParserResultResponse
impl UnwindSafe for FileParserResultResponse
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