Struct wasmcloud_control_interface::Invocation[][src]

pub struct Invocation {
    pub origin: Entity,
    pub target: Entity,
    pub operation: String,
    pub msg: Vec<u8>,
    pub id: String,
    pub encoded_claims: String,
    pub host_id: String,
}

An immutable representation of an invocation within wasmcloud

Fields

origin: Entitytarget: Entityoperation: Stringmsg: Vec<u8>id: Stringencoded_claims: Stringhost_id: String

Implementations

impl Invocation[src]

pub fn new(
    hostkey: &KeyPair,
    origin: Entity,
    target: Entity,
    op: &str,
    msg: Vec<u8>
) -> Invocation
[src]

Creates a new invocation. All invocations are signed with the host key as a way of preventing them from being forged over the network when connected to a lattice, so an invocation requires a reference to the host (signing) key

Trait Implementations

impl Clone for Invocation[src]

impl Debug for Invocation[src]

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

impl Serialize for Invocation[src]

Auto Trait Implementations

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> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

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

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>,