pub enum RequirementStatus {
Due,
PastDue,
Pending,
Rejected,
}Expand description
The current status of a requirement:
- due: Must be submitted and no set deadline has passed
- past_due: Must be submitted and a set deadline has passed
- pending: Submitted, awaiting verification
- rejected: Verification failed - customer must resubmit
For a Terms of Service requirement, `past_due` applies if any unaccepted
version has a deadline set in the past. Otherwise the status is `due`,
including when a version has no deadline and requires immediate acceptance,
or when every set deadline is in the future and acceptance is in grace.
When verification passes, the requirement disappears from the response entirely.JSON schema
{
"description": "The current status of a requirement:\n- `due`: Must be submitted and no set deadline has passed\n- `past_due`: Must be submitted and a set deadline has passed\n- `pending`: Submitted, awaiting verification\n- `rejected`: Verification failed - customer must resubmit\n\nFor a Terms of Service requirement, `past_due` applies if any unaccepted\nversion has a deadline set in the past. Otherwise the status is `due`,\nincluding when a version has no deadline and requires immediate acceptance,\nor when every set deadline is in the future and acceptance is in grace.\n\nWhen verification passes, the requirement disappears from the response entirely.\n",
"examples": [
"due"
],
"type": "string",
"enum": [
"due",
"past_due",
"pending",
"rejected"
]
}Variants§
Trait Implementations§
Source§impl Clone for RequirementStatus
impl Clone for RequirementStatus
impl Copy for RequirementStatus
Source§impl Debug for RequirementStatus
impl Debug for RequirementStatus
Source§impl<'de> Deserialize<'de> for RequirementStatus
impl<'de> Deserialize<'de> for RequirementStatus
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
Source§impl Display for RequirementStatus
impl Display for RequirementStatus
impl Eq for RequirementStatus
Source§impl From<&RequirementStatus> for RequirementStatus
impl From<&RequirementStatus> for RequirementStatus
Source§fn from(value: &RequirementStatus) -> Self
fn from(value: &RequirementStatus) -> Self
Converts to this type from the input type.
Source§impl FromStr for RequirementStatus
impl FromStr for RequirementStatus
Source§impl Hash for RequirementStatus
impl Hash for RequirementStatus
Source§impl Ord for RequirementStatus
impl Ord for RequirementStatus
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialEq for RequirementStatus
impl PartialEq for RequirementStatus
Source§impl PartialOrd for RequirementStatus
impl PartialOrd for RequirementStatus
Source§impl Serialize for RequirementStatus
impl Serialize for RequirementStatus
impl StructuralPartialEq for RequirementStatus
Source§impl TryFrom<&String> for RequirementStatus
impl TryFrom<&String> for RequirementStatus
Source§type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
Source§impl TryFrom<&str> for RequirementStatus
impl TryFrom<&str> for RequirementStatus
Source§type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
Source§impl TryFrom<String> for RequirementStatus
impl TryFrom<String> for RequirementStatus
Source§type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
Auto Trait Implementations§
impl Freeze for RequirementStatus
impl RefUnwindSafe for RequirementStatus
impl Send for RequirementStatus
impl Sync for RequirementStatus
impl Unpin for RequirementStatus
impl UnsafeUnpin for RequirementStatus
impl UnwindSafe for RequirementStatus
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Source§impl<T> ToStringFallible for Twhere
T: Display,
impl<T> ToStringFallible for Twhere
T: Display,
Source§fn try_to_string(&self) -> Result<String, TryReserveError>
fn try_to_string(&self) -> Result<String, TryReserveError>
ToString::to_string, but without panic on OOM.