pub struct ClosedCatalog { /* private fields */ }Expand description
Provisioned contract snapshots, never parsed from a grant request. Run facts must come from trusted immutable run bindings; a later authority service still discharges current run/subject obligations in its transaction.
Implementations§
Source§impl ClosedCatalog
impl ClosedCatalog
pub fn provision( subjects: Vec<SubjectContract>, sources: Vec<SourceContract>, entries: Vec<EntryContract>, definitions: Vec<DefinitionContract>, runs: Vec<RunContract>, ) -> EnvelopeResult<Self>
pub fn validate_rights( &self, rights: &[RightSpec], namespace: &str, grantee: &Principal, ) -> EnvelopeResult<Rights>
pub fn covers_rights( &self, parent: &[RightSpec], requested: &[RightSpec], ) -> bool
Trait Implementations§
Source§impl Clone for ClosedCatalog
impl Clone for ClosedCatalog
Auto Trait Implementations§
impl Forget for ClosedCatalog
impl Freeze for ClosedCatalog
impl Move for ClosedCatalog
impl RefUnwindSafe for ClosedCatalog
impl Send for ClosedCatalog
impl Sync for ClosedCatalog
impl Unpin for ClosedCatalog
impl UnsafeUnpin for ClosedCatalog
impl UnwindSafe for ClosedCatalog
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