Struct IssueRequest
pub struct IssueRequest {
pub settlement_id: String,
pub attestation: Vec<u8>,
pub unit: UnitRef,
pub destination_did: String,
pub amount_minor_lo: u64,
pub amount_minor_hi: u64,
pub grant_cid: Vec<u8>,
}Expand description
A request to issue credits from a verified settlement (#1399, PAY-06).
The attestation is a PQ-hybrid-signed blob proving a committed settlement
row exists in the restricted settlement store. The server re-verifies it
against the issuer’s key material before calling the ledger’s internal
credit path. A client assertion of “paid” is never sufficient.
Fields§
§settlement_id: StringInternal settlement row id (opaque to the product layer; the server resolves it against its own restricted settlement store).
attestation: Vec<u8>PQ-hybrid-signed settlement attestation (COSE composite). The server verifies this before issuing any credits.
unit: UnitRefThe unit to issue.
destination_did: StringThe DID of the credit destination (the purchaser’s pseudonymous identity — never legal identity, per PAY-00 #6).
amount_minor_lo: u64Amount in minor units (u128 as hi/lo since JSON/capnp don’t natively carry u128). The server re-derives this from the settlement row; a client-supplied value is never trusted.
amount_minor_hi: u64§grant_cid: Vec<u8>The allocation grant CID this issuance backs (opaque bytes — the ledger correlates but never parses it).
Implementations§
§impl IssueRequest
impl IssueRequest
Trait Implementations§
§impl Clone for IssueRequest
impl Clone for IssueRequest
§fn clone(&self) -> IssueRequest
fn clone(&self) -> IssueRequest
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more§impl Debug for IssueRequest
impl Debug for IssueRequest
§impl<'de> Deserialize<'de> for IssueRequest
impl<'de> Deserialize<'de> for IssueRequest
§fn deserialize<__D>(
__deserializer: __D,
) -> Result<IssueRequest, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<IssueRequest, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
§impl Serialize for IssueRequest
impl Serialize for IssueRequest
§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,
Auto Trait Implementations§
impl Freeze for IssueRequest
impl RefUnwindSafe for IssueRequest
impl Send for IssueRequest
impl Sync for IssueRequest
impl Unpin for IssueRequest
impl UnsafeUnpin for IssueRequest
impl UnwindSafe for IssueRequest
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more