pub struct CredentialEnvelope;Expand description
Data-envelope identity, not a callable issuer method or signing format.
Implementations§
Source§impl CredentialEnvelope
impl CredentialEnvelope
Sourcepub const ID: u64 = 0x415554480001
pub const ID: u64 = 0x415554480001
Stable IC Wire envelope identity; not a cryptographic domain separator.
Sourcepub const NAME: &'static str = "credential"
pub const NAME: &'static str = "credential"
Transport name for adapters exposing this contract.
Sourcepub const REQUEST_LIMITS: Limits = CREDENTIAL_LIMITS
pub const REQUEST_LIMITS: Limits = CREDENTIAL_LIMITS
Complete encoding and decoding budget for the request envelope.
Sourcepub const RESPONSE_LIMITS: Limits = CREDENTIAL_LIMITS
pub const RESPONSE_LIMITS: Limits = CREDENTIAL_LIMITS
Complete encoding and decoding budget for the response envelope.
Sourcepub fn encode_request(value: &PortableCredential) -> Result<Vec<u8>, Error>
pub fn encode_request(value: &PortableCredential) -> Result<Vec<u8>, Error>
Encode a request with this contract’s identity and complete request budget.
Sourcepub fn decode_request(bytes: &[u8]) -> Result<PortableCredential, Error>
pub fn decode_request(bytes: &[u8]) -> Result<PortableCredential, Error>
Decode a request, rejecting a different identity or exceeded request budget.
Sourcepub fn encode_response(value: &PortableCredential) -> Result<Vec<u8>, Error>
pub fn encode_response(value: &PortableCredential) -> Result<Vec<u8>, Error>
Encode a response with this contract’s identity and complete response budget.
Sourcepub fn decode_response(bytes: &[u8]) -> Result<PortableCredential, Error>
pub fn decode_response(bytes: &[u8]) -> Result<PortableCredential, Error>
Decode a response, rejecting a different identity or exceeded response budget.
Auto Trait Implementations§
impl Forget for CredentialEnvelope
impl Freeze for CredentialEnvelope
impl Move for CredentialEnvelope
impl RefUnwindSafe for CredentialEnvelope
impl Send for CredentialEnvelope
impl Sync for CredentialEnvelope
impl Unpin for CredentialEnvelope
impl UnsafeUnpin for CredentialEnvelope
impl UnwindSafe for CredentialEnvelope
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