[][src]Struct wascap::jwt::Actor

pub struct Actor {
    pub name: Option<String>,
    pub module_hash: String,
    pub tags: Option<Vec<String>>,
    pub caps: Option<Vec<String>>,
    pub rev: Option<i32>,
    pub ver: Option<String>,
    pub provider: bool,
}

The metadata that corresponds to an actor module

Fields

name: Option<String>

A descriptive name for this actor, should not include version information or public key

module_hash: String

A hash of the module's bytes as they exist without the embedded signature. This is stored so wascap can determine if a WebAssembly module's bytecode has been altered after it was signed

tags: Option<Vec<String>>

List of arbitrary string tags associated with the claims

caps: Option<Vec<String>>

List of capability attestations. Can be standard wascap capabilities or custom namespace capabilities

rev: Option<i32>

Indicates a monotonically increasing revision number. Optional.

ver: Option<String>

Indicates a human-friendly version string

provider: bool

Indicates whether this module is a capability provider

Methods

impl Actor[src]

pub fn new(
    name: String,
    caps: Option<Vec<String>>,
    tags: Option<Vec<String>>,
    provider: bool,
    rev: Option<i32>,
    ver: Option<String>
) -> Actor
[src]

Trait Implementations

impl Clone for Actor[src]

impl Debug for Actor[src]

impl Default for Actor[src]

impl<'de> Deserialize<'de> for Actor[src]

impl PartialEq<Actor> for Actor[src]

impl Serialize for Actor[src]

impl StructuralPartialEq for Actor[src]

impl WascapEntity for Actor[src]

Auto Trait Implementations

impl RefUnwindSafe for Actor

impl Send for Actor

impl Sync for Actor

impl Unpin for Actor

impl UnwindSafe for Actor

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Clear for T where
    T: InitializableFromZeroed + ?Sized

impl<T> DeserializeOwned for T where
    T: Deserialize<'de>, 
[src]

impl<T> From<T> for T[src]

impl<T> InitializableFromZeroed for T where
    T: Default

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,