Expand description
ⓘ
use dekopon_capability::{AuthorizedInvocation, ExecutionConstraints, ProposedInvocation};
fn fabricate(proposal: ProposedInvocation, constraints: ExecutionConstraints) {
// Ordinary callers cannot use a struct literal to cross the authority boundary.
let _forged = AuthorizedInvocation {
proposal,
provider: todo!(),
receipt: todo!(),
constraints,
};
}ⓘ
use dekopon_capability::AuthorizedInvocation;
use serde::de::DeserializeOwned;
fn require_deserializable<T: DeserializeOwned>() {}
fn main() {
require_deserializable::<AuthorizedInvocation>();
}ⓘ
use dekopon_capability::AuthorizedInvocation;
fn require_clone<T: Clone>() {}
fn main() {
require_clone::<AuthorizedInvocation>();
}Modules§
Structs§
- Asset
Constraints - Authorization
Receipt - Authorized
Invocation - Chat
Slot Values - Decision
Reference - Evidence
- Execution
Constraints - Http
Constraints - Invocation
Result - Path
Template - Permission
- Proposed
Invocation - Query
Template - Request
Template - Secret
UseGrant - Storage
Constraints
Enums§
- Authorization
Error - Chat
Slot - Effect
Kind - Http
Constraints Error - Http
Path Rule - Invocation
Outcome - Path
Segment - Path
Template Error - Secret
UseGrant Error - Signed
Download - Storage
Access - Storage
Interface - Storage
Retention - Storage
Scope