pub struct IdentityJsonCodec;Expand description
Identity codec for caller-validated JSON bytes.
Trait Implementations§
Source§impl Clone for IdentityJsonCodec
impl Clone for IdentityJsonCodec
Source§fn clone(&self) -> IdentityJsonCodec
fn clone(&self) -> IdentityJsonCodec
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 moreimpl Copy for IdentityJsonCodec
Source§impl Debug for IdentityJsonCodec
impl Debug for IdentityJsonCodec
Source§impl Default for IdentityJsonCodec
impl Default for IdentityJsonCodec
Source§fn default() -> IdentityJsonCodec
fn default() -> IdentityJsonCodec
Returns the “default value” for a type. Read more
Source§impl DntCodec for IdentityJsonCodec
impl DntCodec for IdentityJsonCodec
Source§fn matches_codec_id(&self, codec_id: &CodecId) -> bool
fn matches_codec_id(&self, codec_id: &CodecId) -> bool
Returns true when this codec can decode the authenticated identifier.
Source§fn encode(&self, value: &[u8]) -> Result<Vec<u8>, CodecError>
fn encode(&self, value: &[u8]) -> Result<Vec<u8>, CodecError>
Encodes caller-owned bytes before sealing.
Source§fn decode(&self, payload: &[u8]) -> Result<Vec<u8>, CodecError>
fn decode(&self, payload: &[u8]) -> Result<Vec<u8>, CodecError>
Decodes authenticated plaintext bytes after opening.
Source§fn decode_owned(&self, payload: Vec<u8>) -> Result<Vec<u8>, CodecError>
fn decode_owned(&self, payload: Vec<u8>) -> Result<Vec<u8>, CodecError>
Decodes an owned authenticated payload after opening. Read more
Auto Trait Implementations§
impl Freeze for IdentityJsonCodec
impl RefUnwindSafe for IdentityJsonCodec
impl Send for IdentityJsonCodec
impl Sync for IdentityJsonCodec
impl Unpin for IdentityJsonCodec
impl UnsafeUnpin for IdentityJsonCodec
impl UnwindSafe for IdentityJsonCodec
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