pub struct UcanCapability {
pub caps: Vec<String>,
pub with: Vec<Value>,
}Expand description
UCAN capability inside payload.args — a flat list of ATD capability
strings (records:read, fs.write, …) plus optional resource
bindings (e.g. {"patient": "Patient/X"}).
Spec §4.5 — with reserved for future binding kinds; v1 supports
{"patient": "..."} only.
Fields§
§caps: Vec<String>§with: Vec<Value>Trait Implementations§
Source§impl Clone for UcanCapability
impl Clone for UcanCapability
Source§fn clone(&self) -> UcanCapability
fn clone(&self) -> UcanCapability
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 moreSource§impl Debug for UcanCapability
impl Debug for UcanCapability
Source§impl<'de> Deserialize<'de> for UcanCapability
impl<'de> Deserialize<'de> for UcanCapability
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for UcanCapability
impl PartialEq for UcanCapability
Source§fn eq(&self, other: &UcanCapability) -> bool
fn eq(&self, other: &UcanCapability) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for UcanCapability
impl Serialize for UcanCapability
impl Eq for UcanCapability
impl StructuralPartialEq for UcanCapability
Auto Trait Implementations§
impl Freeze for UcanCapability
impl RefUnwindSafe for UcanCapability
impl Send for UcanCapability
impl Sync for UcanCapability
impl Unpin for UcanCapability
impl UnsafeUnpin for UcanCapability
impl UnwindSafe for UcanCapability
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