pub struct JwtTargetAcceptanceLegFact { /* private fields */ }Expand description
Value-free facts for exactly one ordered request role.
Implementations§
Source§impl JwtTargetAcceptanceLegFact
impl JwtTargetAcceptanceLegFact
Sourcepub fn new(
role: JwtTargetAcceptanceLegRole,
dispatched: JwtTargetAcceptanceDispatchStatus,
committed: JwtTargetAcceptanceCommitStatus,
response_status: JwtTargetAcceptanceResponseStatus,
marker_status: JwtTargetAcceptanceMarkerStatus,
accounted_response_bytes: u64,
evidence_reference: Option<String>,
) -> Result<Self, JwtTargetAcceptanceLegFactError>
pub fn new( role: JwtTargetAcceptanceLegRole, dispatched: JwtTargetAcceptanceDispatchStatus, committed: JwtTargetAcceptanceCommitStatus, response_status: JwtTargetAcceptanceResponseStatus, marker_status: JwtTargetAcceptanceMarkerStatus, accounted_response_bytes: u64, evidence_reference: Option<String>, ) -> Result<Self, JwtTargetAcceptanceLegFactError>
Constructs and validates one value-free leg fact.
Sourcepub fn new_with_transport_accounting(
role: JwtTargetAcceptanceLegRole,
dispatched: JwtTargetAcceptanceDispatchStatus,
committed: JwtTargetAcceptanceCommitStatus,
response_status: JwtTargetAcceptanceResponseStatus,
marker_status: JwtTargetAcceptanceMarkerStatus,
retained_response_bytes: u64,
accounted_response_bytes: u64,
evidence_reference: Option<String>,
) -> Result<Self, JwtTargetAcceptanceLegFactError>
pub fn new_with_transport_accounting( role: JwtTargetAcceptanceLegRole, dispatched: JwtTargetAcceptanceDispatchStatus, committed: JwtTargetAcceptanceCommitStatus, response_status: JwtTargetAcceptanceResponseStatus, marker_status: JwtTargetAcceptanceMarkerStatus, retained_response_bytes: u64, accounted_response_bytes: u64, evidence_reference: Option<String>, ) -> Result<Self, JwtTargetAcceptanceLegFactError>
Constructs one fact while retaining both the bounded body bytes and the broker’s exact transport accounting. A delivered transport chunk may cross the retention ceiling; those extra bytes remain charged but are never retained or interpreted.
Sourcepub fn not_dispatched(role: JwtTargetAcceptanceLegRole) -> Self
pub fn not_dispatched(role: JwtTargetAcceptanceLegRole) -> Self
Creates the only valid undispatched placeholder for a role.
Sourcepub const fn role(&self) -> JwtTargetAcceptanceLegRole
pub const fn role(&self) -> JwtTargetAcceptanceLegRole
Ordered role represented by this fact.
Sourcepub const fn dispatch_status(&self) -> JwtTargetAcceptanceDispatchStatus
pub const fn dispatch_status(&self) -> JwtTargetAcceptanceDispatchStatus
Dispatch state.
Sourcepub const fn was_dispatched(&self) -> bool
pub const fn was_dispatched(&self) -> bool
Whether one request was dispatched.
Sourcepub const fn commit_status(&self) -> JwtTargetAcceptanceCommitStatus
pub const fn commit_status(&self) -> JwtTargetAcceptanceCommitStatus
Evidence-commit state.
Sourcepub const fn was_committed(&self) -> bool
pub const fn was_committed(&self) -> bool
Whether response evidence was committed.
Sourcepub const fn response_status(&self) -> JwtTargetAcceptanceResponseStatus
pub const fn response_status(&self) -> JwtTargetAcceptanceResponseStatus
Response completeness/classification state.
Sourcepub const fn marker_status(&self) -> JwtTargetAcceptanceMarkerStatus
pub const fn marker_status(&self) -> JwtTargetAcceptanceMarkerStatus
Selected-marker observation state.
Sourcepub const fn retained_response_bytes(&self) -> u64
pub const fn retained_response_bytes(&self) -> u64
Response bytes retained for bounded classification.
Sourcepub const fn accounted_response_bytes(&self) -> u64
pub const fn accounted_response_bytes(&self) -> u64
Exact response bytes charged by the shared transport authority.
Sourcepub fn evidence_reference(&self) -> Option<&str>
pub fn evidence_reference(&self) -> Option<&str>
Optional bounded opaque evidence reference.
Trait Implementations§
Source§impl Clone for JwtTargetAcceptanceLegFact
impl Clone for JwtTargetAcceptanceLegFact
Source§fn clone(&self) -> JwtTargetAcceptanceLegFact
fn clone(&self) -> JwtTargetAcceptanceLegFact
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for JwtTargetAcceptanceLegFact
impl Debug for JwtTargetAcceptanceLegFact
Source§impl<'de> Deserialize<'de> for JwtTargetAcceptanceLegFact
impl<'de> Deserialize<'de> for JwtTargetAcceptanceLegFact
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>,
impl Eq for JwtTargetAcceptanceLegFact
impl StructuralPartialEq for JwtTargetAcceptanceLegFact
Auto Trait Implementations§
impl Freeze for JwtTargetAcceptanceLegFact
impl RefUnwindSafe for JwtTargetAcceptanceLegFact
impl Send for JwtTargetAcceptanceLegFact
impl Sync for JwtTargetAcceptanceLegFact
impl Unpin for JwtTargetAcceptanceLegFact
impl UnsafeUnpin for JwtTargetAcceptanceLegFact
impl UnwindSafe for JwtTargetAcceptanceLegFact
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
§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
§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
key and return true if they are equal.