pub struct RewriteIssuanceTokenV0 { /* private fields */ }Expand description
Token issued only after the checker derives and matches both endpoints.
The fields are private and the type has no public constructor.
ⓘ
use omena_cascade_proof::RewriteIssuanceTokenV0;
let _token = RewriteIssuanceTokenV0 {
before_digest: [0; 32],
after_digest: [0; 32],
catalog_schema_id: "caller-owned",
catalog_content_digest: [0; 32],
checked_rule_ids: Vec::new(),
_seal: loop {},
};Implementations§
Source§impl RewriteIssuanceTokenV0
impl RewriteIssuanceTokenV0
pub fn before_digest_hex_v0(&self) -> String
pub fn after_digest_hex_v0(&self) -> String
pub fn checked_rule_ids_v0(&self) -> &[String]
pub const fn catalog_schema_id_v0(&self) -> &'static str
pub fn catalog_content_digest_hex_v0(&self) -> String
Sourcepub fn matches_endpoints_v0(
&self,
before: &RewriteTermV0,
after: &RewriteTermV0,
) -> bool
pub fn matches_endpoints_v0( &self, before: &RewriteTermV0, after: &RewriteTermV0, ) -> bool
Re-bind a sealed issuance token to the exact endpoints a consumer is about to apply. A token for a different rewrite pair is not reusable.
Sourcepub fn matches_catalog_v0(&self, catalog: &RewriteRuleCatalogV0) -> bool
pub fn matches_catalog_v0(&self, catalog: &RewriteRuleCatalogV0) -> bool
Compare the sealed catalog identity with catalog content selected by a consumer. Callers do not supply a digest: it is re-derived here from the catalog value the consumer trusts.
Trait Implementations§
Source§impl Clone for RewriteIssuanceTokenV0
impl Clone for RewriteIssuanceTokenV0
Source§fn clone(&self) -> RewriteIssuanceTokenV0
fn clone(&self) -> RewriteIssuanceTokenV0
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 RewriteIssuanceTokenV0
impl Debug for RewriteIssuanceTokenV0
impl Eq for RewriteIssuanceTokenV0
Source§impl PartialEq for RewriteIssuanceTokenV0
impl PartialEq for RewriteIssuanceTokenV0
impl StructuralPartialEq for RewriteIssuanceTokenV0
Auto Trait Implementations§
impl Freeze for RewriteIssuanceTokenV0
impl RefUnwindSafe for RewriteIssuanceTokenV0
impl Send for RewriteIssuanceTokenV0
impl Sync for RewriteIssuanceTokenV0
impl Unpin for RewriteIssuanceTokenV0
impl UnsafeUnpin for RewriteIssuanceTokenV0
impl UnwindSafe for RewriteIssuanceTokenV0
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.