pub struct CrawlStatus {
pub status: CrawlStatusTypes,
pub total: u32,
pub completed: u32,
pub credits_used: u32,
pub expires_at: String,
pub next: Option<String>,
pub data: Vec<Document>,
}Fields§
§status: CrawlStatusTypesThe status of the crawl.
total: u32Number of pages that will be scraped in total. This number may grow as the crawler discovers new pages.
completed: u32Number of pages that have been successfully scraped.
credits_used: u32Amount of credits used by the crawl job.
expires_at: StringExpiry time of crawl data. After this date, the crawl data will be unavailable from the API.
next: Option<String>URL to call to get the next batch of documents. Unless you are sidestepping the SDK, you do not need to deal with this.
data: Vec<Document>List of documents returned by the crawl
Trait Implementations§
Source§impl Clone for CrawlStatus
impl Clone for CrawlStatus
Source§fn clone(&self) -> CrawlStatus
fn clone(&self) -> CrawlStatus
Returns a duplicate of the value. Read more
1.0.0 · 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 CrawlStatus
impl Debug for CrawlStatus
Source§impl<'de> Deserialize<'de> for CrawlStatus
impl<'de> Deserialize<'de> for CrawlStatus
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 CrawlStatus
impl RefUnwindSafe for CrawlStatus
impl Send for CrawlStatus
impl Sync for CrawlStatus
impl Unpin for CrawlStatus
impl UnwindSafe for CrawlStatus
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