pub struct AifValue(/* private fields */);
Expand description
A representation of an RFC9237 using the REST-specific model.
It is arbitrarily limited in length; future versions may give more flexibility, eg. by referring to data in storage.
This type is constrained to valid CBOR representations of the REST-specific model; it may panic if that constraint is not upheld.
§Caveats
Using this is not very efficient; worst case, it iterates over all options for all AIF entries. This could be mitigated by sorting the records at construction time.
This completely disregards proper URI splitting; this works for very simple URI references in the AIF. This could be mitigated by switching to a CRI based model.
Implementations§
Trait Implementations§
Source§impl From<AifValue> for UnionScope
impl From<AifValue> for UnionScope
Auto Trait Implementations§
impl Freeze for AifValue
impl RefUnwindSafe for AifValue
impl Send for AifValue
impl Sync for AifValue
impl Unpin for AifValue
impl UnwindSafe for AifValue
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