pub struct RouteIdentityV2 {
pub version: u16,
pub request_mode: String,
pub requested_backend: String,
pub selected_backend: Evidence<String>,
pub completed_backend: Evidence<String>,
pub autoroute_decision_digest: Evidence<String>,
pub batches: Vec<BatchRouteV2>,
pub dropped_batches: u64,
}Expand description
Requested, selected, completed, and recovered backend identity.
Fields§
§version: u16§request_mode: String§requested_backend: String§selected_backend: Evidence<String>§completed_backend: Evidence<String>§autoroute_decision_digest: Evidence<String>§batches: Vec<BatchRouteV2>§dropped_batches: u64Routes omitted after the retained-batch cap; defaults to 0 for older profiles.
Implementations§
Source§impl RouteIdentityV2
impl RouteIdentityV2
Sourcepub fn from_recorded_batches(
requested_backend: String,
batches: Vec<BatchRouteV2>,
) -> Self
pub fn from_recorded_batches( requested_backend: String, batches: Vec<BatchRouteV2>, ) -> Self
Build aggregate route identity from the exact completed batch records.
Sourcepub fn from_recorded_batches_with_drops(
requested_backend: String,
batches: Vec<BatchRouteV2>,
dropped_batches: u64,
) -> Self
pub fn from_recorded_batches_with_drops( requested_backend: String, batches: Vec<BatchRouteV2>, dropped_batches: u64, ) -> Self
Build aggregate route identity, including explicit drop accounting.
Trait Implementations§
Source§impl Clone for RouteIdentityV2
impl Clone for RouteIdentityV2
Source§fn clone(&self) -> RouteIdentityV2
fn clone(&self) -> RouteIdentityV2
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 moreSource§impl Debug for RouteIdentityV2
impl Debug for RouteIdentityV2
Source§impl<'de> Deserialize<'de> for RouteIdentityV2
impl<'de> Deserialize<'de> for RouteIdentityV2
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 PartialEq for RouteIdentityV2
impl PartialEq for RouteIdentityV2
Source§impl Serialize for RouteIdentityV2
impl Serialize for RouteIdentityV2
impl StructuralPartialEq for RouteIdentityV2
Auto Trait Implementations§
impl Freeze for RouteIdentityV2
impl RefUnwindSafe for RouteIdentityV2
impl Send for RouteIdentityV2
impl Sync for RouteIdentityV2
impl Unpin for RouteIdentityV2
impl UnsafeUnpin for RouteIdentityV2
impl UnwindSafe for RouteIdentityV2
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