[−][src]Struct ichen_openprotocol::JobCard
A data structure containing information on a production job (i.e. a job card).
Fields
job_card_id: Cow<'a, str>Unique job ID, which must not be empty or all white-spaces.
mold_id: Cow<'a, str>ID of the set of mold data to load for this job.
progress: u32Current production progress, which must not be larger than total.
total: u32Total production count ordered.
Methods
impl<'a> JobCard<'a>[src]
pub fn new(id: &'a str, mold: &'a str, progress: u32, total: u32) -> Self[src]
pub fn validate(&self) -> Result<'static, ()>[src]
Validate the data structure.
Trait Implementations
impl<'a> Clone for JobCard<'a>[src]
fn clone(&self) -> JobCard<'a>[src]
fn clone_from(&mut self, source: &Self)1.0.0[src]
Performs copy-assignment from source. Read more
impl<'a> PartialEq<JobCard<'a>> for JobCard<'a>[src]
impl<'a> Debug for JobCard<'a>[src]
impl<'a> Serialize for JobCard<'a>[src]
fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error> where
__S: Serializer, [src]
__S: Serializer,
impl<'de: 'a, 'a> Deserialize<'de> for JobCard<'a>[src]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>, [src]
__D: Deserializer<'de>,
Auto Trait Implementations
impl<'a> Sync for JobCard<'a>
impl<'a> Send for JobCard<'a>
impl<'a> Unpin for JobCard<'a>
impl<'a> RefUnwindSafe for JobCard<'a>
impl<'a> UnwindSafe for JobCard<'a>
Blanket Implementations
impl<T> ToOwned for T where
T: Clone, [src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T[src]
fn clone_into(&self, target: &mut T)[src]
impl<T> From<T> for T[src]
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>[src]
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T[src]
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,
impl<T> DeserializeOwned for T where
T: Deserialize<'de>, [src]
T: Deserialize<'de>,