[][src]Struct teaclave_types::TaskState

pub struct TaskState {
    pub task_id: Uuid,
    pub creator: UserID,
    pub function_id: ExternalID,
    pub function_arguments: FunctionArguments,
    pub executor: Executor,
    pub inputs_ownership: TaskFileOwners,
    pub outputs_ownership: TaskFileOwners,
    pub function_owner: UserID,
    pub participants: UserList,
    pub approved_users: UserList,
    pub assigned_inputs: TaskFiles<TeaclaveInputFile>,
    pub assigned_outputs: TaskFiles<TeaclaveOutputFile>,
    pub result: TaskResult,
    pub status: TaskStatus,
}

Fields

task_id: Uuidcreator: UserIDfunction_id: ExternalIDfunction_arguments: FunctionArgumentsexecutor: Executorinputs_ownership: TaskFileOwnersoutputs_ownership: TaskFileOwnersfunction_owner: UserIDparticipants: UserListapproved_users: UserListassigned_inputs: TaskFiles<TeaclaveInputFile>assigned_outputs: TaskFiles<TeaclaveOutputFile>result: TaskResultstatus: TaskStatus

Methods

impl TaskState[src]

pub fn everyone_approved(&self) -> bool[src]

pub fn all_data_assigned(&self) -> bool[src]

pub fn has_participant(&self, user_id: &UserID) -> bool[src]

pub fn has_creator(&self, user_id: &UserID) -> bool[src]

Trait Implementations

impl Clone for TaskState[src]

impl Debug for TaskState[src]

impl Default for TaskState[src]

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

impl From<Task<Approve>> for TaskState[src]

impl From<Task<Assign>> for TaskState[src]

impl From<Task<Create>> for TaskState[src]

impl From<Task<Finish>> for TaskState[src]

impl From<Task<Run>> for TaskState[src]

impl From<Task<Stage>> for TaskState[src]

impl Serialize for TaskState[src]

impl Storable for TaskState[src]

impl TryFrom<TaskState> for Task<Assign>[src]

type Error = Error

The type returned in the event of a conversion error.

impl TryFrom<TaskState> for Task<Approve>[src]

type Error = Error

The type returned in the event of a conversion error.

impl TryFrom<TaskState> for Task<Stage>[src]

type Error = Error

The type returned in the event of a conversion error.

impl TryFrom<TaskState> for Task<Run>[src]

type Error = Error

The type returned in the event of a conversion error.

impl TryFrom<TaskState> for Task<Finish>[src]

type Error = Error

The type returned in the event of a conversion error.

Auto Trait Implementations

impl RefUnwindSafe for TaskState

impl Send for TaskState

impl Sync for TaskState

impl Unpin for TaskState

impl UnwindSafe for TaskState

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