#[non_exhaustive]pub struct CallRecord {
pub adapter: AdapterId,
pub kinds: Vec<QuestionKind>,
pub tokens: Tokens,
pub cost: Option<Cost>,
pub role: CallRole,
pub outcome: CallOutcome,
}Expand description
One classifier call as the ledger receives it.
cost is None when the adapter has no price on the sheet, and for a
failed call — whether a vendor bills a failed request is its own
business, so the router does not guess.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.adapter: AdapterId§kinds: Vec<QuestionKind>Every question id the call carried, in order.
tokens: Tokens§cost: Option<Cost>§role: CallRole§outcome: CallOutcomeTrait Implementations§
Source§impl Clone for CallRecord
impl Clone for CallRecord
Source§impl Debug for CallRecord
impl Debug for CallRecord
impl Eq for CallRecord
Source§impl PartialEq for CallRecord
impl PartialEq for CallRecord
impl StructuralPartialEq for CallRecord
Auto Trait Implementations§
impl Freeze for CallRecord
impl RefUnwindSafe for CallRecord
impl Send for CallRecord
impl Sync for CallRecord
impl Unpin for CallRecord
impl UnsafeUnpin for CallRecord
impl UnwindSafe for CallRecord
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,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.