Enum dao::bid_escrow::job::WorkerType
source · pub enum WorkerType {
Internal,
ExternalToVA,
External,
}
Expand description
Serializable Worker type.
Variants§
Internal
ExternalToVA
Non-VA who becomes a VA once the Job is accepted.
External
Non-VA who does not want to become a VA.
Trait Implementations§
source§impl BorshDeserialize for WorkerType
impl BorshDeserialize for WorkerType
source§fn deserialize(buf: &mut &[u8]) -> Result<Self>
fn deserialize(buf: &mut &[u8]) -> Result<Self>
Deserializes this instance from a given slice of bytes.
Updates the buffer to point at the remaining bytes.
§fn try_from_slice(v: &[u8]) -> Result<Self, Error>
fn try_from_slice(v: &[u8]) -> Result<Self, Error>
Deserialize this instance from a slice of bytes.
source§impl BorshSerialize for WorkerType
impl BorshSerialize for WorkerType
source§impl Clone for WorkerType
impl Clone for WorkerType
source§fn clone(&self) -> WorkerType
fn clone(&self) -> WorkerType
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for WorkerType
impl Debug for WorkerType
source§impl PartialEq for WorkerType
impl PartialEq for WorkerType
source§fn eq(&self, other: &WorkerType) -> bool
fn eq(&self, other: &WorkerType) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for WorkerType
impl Eq for WorkerType
impl StructuralPartialEq for WorkerType
Auto Trait Implementations§
impl RefUnwindSafe for WorkerType
impl Send for WorkerType
impl Sync for WorkerType
impl Unpin for WorkerType
impl UnwindSafe for WorkerType
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more