pub struct CapabilityView {
pub capability: Capability,
pub source_path: String,
}Expand description
One builtin capability: the canonical descriptor and where its source is.
Fields§
§capability: CapabilityThe descriptor, every field.
source_path: StringRepository-relative path of the Rust file the descriptor was composed in.
Trait Implementations§
Source§impl Clone for CapabilityView
impl Clone for CapabilityView
Source§fn clone(&self) -> CapabilityView
fn clone(&self) -> CapabilityView
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 CapabilityView
impl Debug for CapabilityView
Source§impl Ordered for CapabilityView
The view orders as the capability it carries: the source path it adds is provenance.
impl Ordered for CapabilityView
The view orders as the capability it carries: the source path it adds is provenance.
Auto Trait Implementations§
impl Freeze for CapabilityView
impl RefUnwindSafe for CapabilityView
impl Send for CapabilityView
impl Sync for CapabilityView
impl Unpin for CapabilityView
impl UnsafeUnpin for CapabilityView
impl UnwindSafe for CapabilityView
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