pub struct PerceiveResult {
pub url: String,
pub final_url: String,
pub page_type: u8,
pub confidence: f32,
pub features: Vec<(usize, f32)>,
pub content: Option<String>,
pub load_time_ms: u64,
}Expand description
Result of perceiving a single page.
Fields§
§url: StringThe original URL that was requested.
final_url: StringThe final URL after redirects.
page_type: u8Classified page type.
confidence: f32Classification confidence.
features: Vec<(usize, f32)>128-dimension feature vector (sparse: only non-zero entries).
content: Option<String>Optional raw text content of the page.
load_time_ms: u64Load time in milliseconds.
Trait Implementations§
Source§impl Clone for PerceiveResult
impl Clone for PerceiveResult
Source§fn clone(&self) -> PerceiveResult
fn clone(&self) -> PerceiveResult
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 PerceiveResult
impl Debug for PerceiveResult
Source§impl<'de> Deserialize<'de> for PerceiveResult
impl<'de> Deserialize<'de> for PerceiveResult
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 PerceiveResult
impl RefUnwindSafe for PerceiveResult
impl Send for PerceiveResult
impl Sync for PerceiveResult
impl Unpin for PerceiveResult
impl UnsafeUnpin for PerceiveResult
impl UnwindSafe for PerceiveResult
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