pub enum Readiness {
Ready,
TrainerReviewRequired {
gate: ReviewGate,
},
BehaviorOrCareReviewRequired {
gate: ReviewGate,
},
PackageOrPaymentReviewRequired {
gate: ReviewGate,
},
}Expand description
Enrollment readiness state and the review gate that blocks assignment when data, behavior, care, or payment facts are incomplete.
Variants§
Ready
Enrollment has enough source facts to draft trainer assignment.
TrainerReviewRequired
Source-derived gate carried by this training contract.
Fields
§
gate: ReviewGateGate value carried by this review or workflow variant.
BehaviorOrCareReviewRequired
Source-derived gate carried by this training contract.
Fields
§
gate: ReviewGateGate value carried by this review or workflow variant.
PackageOrPaymentReviewRequired
Source-derived gate carried by this training contract.
Fields
§
gate: ReviewGateGate value carried by this review or workflow variant.
Implementations§
Source§impl Readiness
impl Readiness
Sourcepub fn blocking_gate(&self) -> Option<ReviewGate>
pub fn blocking_gate(&self) -> Option<ReviewGate>
Returns the blocking review gate recorded on this training contract.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Readiness
impl<'de> Deserialize<'de> for Readiness
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for Readiness
impl StructuralPartialEq for Readiness
Auto Trait Implementations§
impl Freeze for Readiness
impl RefUnwindSafe for Readiness
impl Send for Readiness
impl Sync for Readiness
impl Unpin for Readiness
impl UnsafeUnpin for Readiness
impl UnwindSafe for Readiness
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