pub struct CrawlQueue {
pub id: String,
pub url: String,
pub domain: String,
pub depth: usize,
pub status: CrawlStatus,
pub created_at: DateTime<Utc>,
pub processed_at: Option<DateTime<Utc>>,
pub error_message: Option<String>,
pub retry_count: usize,
}
Expand description
Represents a crawl queue entry for managing web crawling operations.
Used to track URLs that need to be crawled and their crawling metadata.
Fields§
§id: String
Unique identifier for the queue entry
url: String
URL to be crawled
domain: String
Domain name for organization
depth: usize
Crawl depth from the starting URL
status: CrawlStatus
§created_at: DateTime<Utc>
§processed_at: Option<DateTime<Utc>>
§error_message: Option<String>
§retry_count: usize
Trait Implementations§
Source§impl Clone for CrawlQueue
impl Clone for CrawlQueue
Source§fn clone(&self) -> CrawlQueue
fn clone(&self) -> CrawlQueue
Returns a copy 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 CrawlQueue
impl Debug for CrawlQueue
Source§impl<'de> Deserialize<'de> for CrawlQueue
impl<'de> Deserialize<'de> for CrawlQueue
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 CrawlQueue
impl RefUnwindSafe for CrawlQueue
impl Send for CrawlQueue
impl Sync for CrawlQueue
impl Unpin for CrawlQueue
impl UnwindSafe for CrawlQueue
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