pub struct ExtractRecord {
pub status: ExtractStatus,
pub data: Option<Value>,
pub per_url: Vec<UrlResult>,
pub tokens_used: u32,
pub credits_used: u32,
pub error: Option<String>,
pub created_at: Instant,
pub expires_at: SystemTime,
pub claimed_index: Option<usize>,
}Expand description
An async extract job record. data is the single merged JSON object (the
scrape’s json field unioned across URLs), preserved for the FC-legacy
GET /v2/extract/{id} data shape. per_url is the native per-URL array
(GET /v1/extract/{id}), in original request order.
Fields§
§status: ExtractStatus§data: Option<Value>§per_url: Vec<UrlResult>§tokens_used: u32§credits_used: u32§error: Option<String>§created_at: Instant§expires_at: SystemTimeAbsolute wall-clock expiry captured once at admission. Serializers use this persisted value so repeated lifecycle envelopes never drift.
claimed_index: Option<usize>The one URL currently dispatched by the sequential worker. Cancellation cannot cross its terminal barrier until this slot has persisted.
Trait Implementations§
Source§impl Clone for ExtractRecord
impl Clone for ExtractRecord
Source§fn clone(&self) -> ExtractRecord
fn clone(&self) -> ExtractRecord
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 moreAuto Trait Implementations§
impl Freeze for ExtractRecord
impl RefUnwindSafe for ExtractRecord
impl Send for ExtractRecord
impl Sync for ExtractRecord
impl Unpin for ExtractRecord
impl UnsafeUnpin for ExtractRecord
impl UnwindSafe for ExtractRecord
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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>
Converts
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>
Converts
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