ssi_status

Trait FromBytes

Source
pub trait FromBytes<V>: Sized {
    type Error: Error;

    // Required method
    async fn from_bytes_with(
        bytes: &[u8],
        media_type: &str,
        verification_params: &V,
        options: FromBytesOptions,
    ) -> Result<Self, Self::Error>;

    // Provided method
    async fn from_bytes(
        bytes: &[u8],
        media_type: &str,
        verifier: &V,
    ) -> Result<Self, Self::Error> { ... }
}

Required Associated Types§

Required Methods§

Source

async fn from_bytes_with( bytes: &[u8], media_type: &str, verification_params: &V, options: FromBytesOptions, ) -> Result<Self, Self::Error>

Provided Methods§

Source

async fn from_bytes( bytes: &[u8], media_type: &str, verifier: &V, ) -> Result<Self, Self::Error>

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

Source§

impl<V> FromBytes<V> for AnyEntrySet

Source§

impl<V> FromBytes<V> for AnyStatusMap

Source§

impl<V> FromBytes<V> for AnyStatusListEntrySet

Source§

impl<V> FromBytes<V> for StatusListToken

Source§

impl<V> FromBytes<V> for ssi_status::bitstring_status_list::BitstringStatusListCredential

Source§

impl<V> FromBytes<V> for ssi_status::bitstring_status_list::BitstringStatusListEntrySetCredential

Source§

impl<V> FromBytes<V> for ssi_status::bitstring_status_list_20240406::BitstringStatusListCredential

Source§

impl<V> FromBytes<V> for ssi_status::bitstring_status_list_20240406::BitstringStatusListEntrySetCredential