[][src]Struct teaclave_types::Function

pub struct Function {
    pub id: Uuid,
    pub name: String,
    pub description: String,
    pub public: bool,
    pub executor_type: ExecutorType,
    pub payload: Vec<u8>,
    pub arguments: Vec<String>,
    pub inputs: Vec<FunctionInput>,
    pub outputs: Vec<FunctionOutput>,
    pub owner: UserID,
}

Fields

id: Uuidname: Stringdescription: Stringpublic: boolexecutor_type: ExecutorTypepayload: Vec<u8>arguments: Vec<String>inputs: Vec<FunctionInput>outputs: Vec<FunctionOutput>owner: UserID

Methods

impl Function[src]

pub fn new() -> Self[src]

pub fn id(self, id: Uuid) -> Self[src]

pub fn executor_type(self, executor_type: ExecutorType) -> Self[src]

pub fn name(self, name: impl ToString) -> Self[src]

pub fn description(self, description: impl ToString) -> Self[src]

pub fn payload(self, payload: Vec<u8>) -> Self[src]

pub fn public(self, public: bool) -> Self[src]

pub fn arguments(self, arguments: Vec<String>) -> Self[src]

pub fn inputs(self, inputs: Vec<FunctionInput>) -> Self[src]

pub fn outputs(self, outputs: Vec<FunctionOutput>) -> Self[src]

pub fn owner(self, owner: impl Into<UserID>) -> Self[src]

Trait Implementations

impl Debug for Function[src]

impl Default for Function[src]

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

impl Serialize for Function[src]

impl Storable for Function[src]

Auto Trait Implementations

impl RefUnwindSafe for Function

impl Send for Function

impl Sync for Function

impl Unpin for Function

impl UnwindSafe for Function

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

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

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

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>, 
[src]