[][src]Struct teaclave_proto::teaclave_frontend_service::RegisterFunctionRequest

pub struct RegisterFunctionRequest {
    pub name: String,
    pub description: String,
    pub executor_type: ExecutorType,
    pub payload: Vec<u8>,
    pub public: bool,
    pub arguments: Vec<String>,
    pub inputs: Vec<FunctionInput>,
    pub outputs: Vec<FunctionOutput>,
}

Fields

name: Stringdescription: Stringexecutor_type: ExecutorTypepayload: Vec<u8>public: boolarguments: Vec<String>inputs: Vec<FunctionInput>outputs: Vec<FunctionOutput>

Methods

impl RegisterFunctionRequest[src]

pub fn new() -> Self[src]

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

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

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

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

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

pub fn arguments<T: IntoIterator>(self, args: T) -> Self where
    <T as IntoIterator>::Item: ToString
[src]

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

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

Trait Implementations

impl Debug for RegisterFunctionRequest[src]

impl Default for RegisterFunctionRequest[src]

impl From<RegisterFunctionRequest> for Function[src]

impl From<RegisterFunctionRequest> for RegisterFunctionRequest[src]

impl IntoRequest<TeaclaveFrontendRequest> for RegisterFunctionRequest[src]

impl IntoRequest<TeaclaveManagementRequest> for RegisterFunctionRequest[src]

impl TryFrom<RegisterFunctionRequest> for RegisterFunctionRequest[src]

type Error = Error

The type returned in the event of a conversion error.

Auto Trait Implementations

impl RefUnwindSafe for RegisterFunctionRequest

impl Send for RegisterFunctionRequest

impl Sync for RegisterFunctionRequest

impl Unpin for RegisterFunctionRequest

impl UnwindSafe for RegisterFunctionRequest

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> From<T> for T[src]

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

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

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

type Output = T

Should always be Self

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]