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§
Sourcetype StatusSize
type StatusSize
Status map status size type.
Required Methods§
Sourcefn status_list_url(&self) -> &Uri
fn status_list_url(&self) -> &Uri
URL to the status map.
Sourcefn status_size(&self) -> Option<Self::StatusSize>
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.