pub struct StatusList { /* private fields */ }Expand description
A decoded Bitstring Status List — the GZIP-decompressed bitstring.
Implementations§
Source§impl StatusList
impl StatusList
Sourcepub fn from_encoded_list(encoded: &str) -> Result<Self>
pub fn from_encoded_list(encoded: &str) -> Result<Self>
Decode a W3C encodedList: an optional multibase u prefix followed by
base64url (no padding) of a GZIP-compressed bitstring.
Sourcepub fn from_bitstring(bits: Vec<u8>) -> Self
pub fn from_bitstring(bits: Vec<u8>) -> Self
Build directly from a decompressed bitstring (tests / non-encoded sources).
Trait Implementations§
Source§impl Clone for StatusList
impl Clone for StatusList
Source§fn clone(&self) -> StatusList
fn clone(&self) -> StatusList
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 moreAuto Trait Implementations§
impl Freeze for StatusList
impl RefUnwindSafe for StatusList
impl Send for StatusList
impl Sync for StatusList
impl Unpin for StatusList
impl UnsafeUnpin for StatusList
impl UnwindSafe for StatusList
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