ssi_status

Trait StatusMapEntry

Source
pub trait StatusMapEntry {
    type Key;
    type StatusSize;

    // Required methods
    fn status_list_url(&self) -> &Uri;
    fn status_size(&self) -> Option<Self::StatusSize>;
    fn key(&self) -> Self::Key;
}
Expand description

Status map entry.

A status map entry is a reference to a particular status in a status map. It links to a status map, providing a key in this map.

Required Associated Types§

Source

type Key

Key indexing each status in the referenced status list.

Source

type StatusSize

Status map status size type.

Required Methods§

Source

fn status_list_url(&self) -> &Uri

URL to the status map.

Source

fn status_size(&self) -> Option<Self::StatusSize>

Size of each status in the status map, if it is known by the entry.

For some StatusMap implementations such as crate::token_status_list::StatusList the status size is stored in the map, while for some other implementations such as crate::bitstring_status_list::StatusList the status size is stored in the entry (crate::bitstring_status_list::BitstringStatusListEntry).

If this function returns None, it is assumed that the status size will be provided by the status map.

Source

fn key(&self) -> Self::Key

Entry key.

Implementations on Foreign Types§

Source§

impl<'a, E: StatusMapEntry> StatusMapEntry for &'a E

Implementors§