Skip to main content

Crate dekopon_capability

Crate dekopon_capability 

Source
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§

broker

Structs§

AssetConstraints
AuthorizationReceipt
AuthorizedInvocation
ChatSlotValues
DecisionReference
Evidence
ExecutionConstraints
HttpConstraints
InvocationResult
PathTemplate
Permission
ProposedInvocation
QueryTemplate
RequestTemplate
SecretUseGrant
StorageConstraints

Enums§

AuthorizationError
ChatSlot
EffectKind
HttpConstraintsError
HttpPathRule
InvocationOutcome
PathSegment
PathTemplateError
SecretUseGrantError
SignedDownload
StorageAccess
StorageInterface
StorageRetention
StorageScope

Constants§

MAX_HTTP_HOST_BYTES
MAX_HTTP_METHOD_BYTES
MAX_HTTP_SCOPE_ENTRIES
MAX_TEMPLATE_PATH_BYTES
MAX_TEMPLATE_QUERY_KEY_BYTES