pub struct CrawlJob {
pub status: JobStatus,
pub total: u32,
pub completed: u32,
pub credits_used: Option<u32>,
pub expires_at: Option<String>,
pub next: Option<String>,
pub data: Vec<Document>,
}Expand description
Status of a crawl job.
Fields§
§status: JobStatusCurrent status of the crawl job.
total: u32Total number of pages to crawl.
completed: u32Number of pages completed.
credits_used: Option<u32>Credits used by the crawl.
expires_at: Option<String>Expiry time of the crawl data.
next: Option<String>URL for the next page of results.
data: Vec<Document>Crawled documents.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for CrawlJob
impl<'de> Deserialize<'de> for CrawlJob
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 CrawlJob
impl RefUnwindSafe for CrawlJob
impl Send for CrawlJob
impl Sync for CrawlJob
impl Unpin for CrawlJob
impl UnsafeUnpin for CrawlJob
impl UnwindSafe for CrawlJob
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