pub struct TransactionView {
pub url: String,
pub status: u16,
pub response_headers: BTreeMap<String, String>,
pub response_body_snippet: Option<String>,
}Expand description
A simplified view of one HTTP transaction used for provider classification.
Fields§
§url: StringRequest URL.
status: u16HTTP status code.
response_headers: BTreeMap<String, String>Response headers (lower/upper case are normalized by the classifier).
response_body_snippet: Option<String>Optional response body snippet.
Trait Implementations§
Source§impl Clone for TransactionView
impl Clone for TransactionView
Source§fn clone(&self) -> TransactionView
fn clone(&self) -> TransactionView
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 TransactionView
impl Debug for TransactionView
Source§impl Default for TransactionView
impl Default for TransactionView
Source§fn default() -> TransactionView
fn default() -> TransactionView
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for TransactionView
impl<'de> Deserialize<'de> for TransactionView
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
Source§impl From<TransactionViewWithType> for TransactionView
impl From<TransactionViewWithType> for TransactionView
Source§fn from(value: TransactionViewWithType) -> Self
fn from(value: TransactionViewWithType) -> Self
Converts to this type from the input type.
Source§impl PartialEq for TransactionView
impl PartialEq for TransactionView
Source§impl Serialize for TransactionView
impl Serialize for TransactionView
impl Eq for TransactionView
impl StructuralPartialEq for TransactionView
Auto Trait Implementations§
impl Freeze for TransactionView
impl RefUnwindSafe for TransactionView
impl Send for TransactionView
impl Sync for TransactionView
impl Unpin for TransactionView
impl UnsafeUnpin for TransactionView
impl UnwindSafe for TransactionView
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more