pub struct CapacityBookingAllocationEvidenceV1 {
pub pool: String,
pub pool_revision: u64,
pub booking: CapacityBookingId,
pub execution: TransportExecutionId,
pub requested: u64,
pub quantity: u64,
pub status: CapacityBookingStatus,
pub failure: Option<CapacityAllocationFailureV1>,
pub remaining_after: u64,
pub allocated_at: SimTime,
pub operation_key: String,
pub semantic_digest: String,
}Expand description
Replayable evidence of one allocation decision.
Fields§
§pool: String§pool_revision: u64§booking: CapacityBookingId§execution: TransportExecutionId§requested: u64§quantity: u64Granted quantity: the full request when confirmed, zero when failed.
status: CapacityBookingStatus§failure: Option<CapacityAllocationFailureV1>§remaining_after: u64Pool capacity left after this decision, in allocation order.
allocated_at: SimTime§operation_key: String§semantic_digest: StringDomain-separated BLAKE3 digest over every other field; see
CAPACITY_BOOKING_ALLOCATION_DIGEST_DOMAIN.
Implementations§
Source§impl CapacityBookingAllocationEvidenceV1
impl CapacityBookingAllocationEvidenceV1
Sourcepub fn expected_digest(&self) -> String
pub fn expected_digest(&self) -> String
Recomputes the digest over every field except semantic_digest.
pub fn digest_matches(&self) -> bool
Trait Implementations§
Source§impl Clone for CapacityBookingAllocationEvidenceV1
impl Clone for CapacityBookingAllocationEvidenceV1
Source§fn clone(&self) -> CapacityBookingAllocationEvidenceV1
fn clone(&self) -> CapacityBookingAllocationEvidenceV1
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<'de> Deserialize<'de> for CapacityBookingAllocationEvidenceV1
impl<'de> Deserialize<'de> for CapacityBookingAllocationEvidenceV1
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<CapacityBookingAllocationEvidenceV1, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<CapacityBookingAllocationEvidenceV1, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for CapacityBookingAllocationEvidenceV1
Source§impl Serialize for CapacityBookingAllocationEvidenceV1
impl Serialize for CapacityBookingAllocationEvidenceV1
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl StructuralPartialEq for CapacityBookingAllocationEvidenceV1
Auto Trait Implementations§
impl Freeze for CapacityBookingAllocationEvidenceV1
impl RefUnwindSafe for CapacityBookingAllocationEvidenceV1
impl Send for CapacityBookingAllocationEvidenceV1
impl Sync for CapacityBookingAllocationEvidenceV1
impl Unpin for CapacityBookingAllocationEvidenceV1
impl UnsafeUnpin for CapacityBookingAllocationEvidenceV1
impl UnwindSafe for CapacityBookingAllocationEvidenceV1
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