pub struct TaskCreateRequestPickupDeadlineHours(/* private fields */);Expand description
Required. The bidding-window length: how long the task stays open for bidding before its closing time. Must be one of the allowed windows (1, 4, 12, 24, or 72 hours) — there is no default. The server computes pickup_deadline as now + this many hours. A task posted without a valid choice is rejected (422 pickup_deadline_required).
JSON schema
{
"description": "Required. The bidding-window length: how long the task stays open for bidding before its closing time. Must be one of the allowed windows (1, 4, 12, 24, or 72 hours) — there is no default. The server computes pickup_deadline as now + this many hours. A task posted without a valid choice is rejected (422 pickup_deadline_required).\n",
"type": "integer",
"enum": [
1,
4,
12,
24,
72
]
}Trait Implementations§
Source§impl Clone for TaskCreateRequestPickupDeadlineHours
impl Clone for TaskCreateRequestPickupDeadlineHours
Source§fn clone(&self) -> TaskCreateRequestPickupDeadlineHours
fn clone(&self) -> TaskCreateRequestPickupDeadlineHours
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<'de> Deserialize<'de> for TaskCreateRequestPickupDeadlineHours
impl<'de> Deserialize<'de> for TaskCreateRequestPickupDeadlineHours
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 From<TaskCreateRequestPickupDeadlineHours> for i64
impl From<TaskCreateRequestPickupDeadlineHours> for i64
Source§fn from(value: TaskCreateRequestPickupDeadlineHours) -> Self
fn from(value: TaskCreateRequestPickupDeadlineHours) -> Self
Converts to this type from the input type.
Source§impl TryFrom<i64> for TaskCreateRequestPickupDeadlineHours
impl TryFrom<i64> for TaskCreateRequestPickupDeadlineHours
Source§type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
Auto Trait Implementations§
impl Freeze for TaskCreateRequestPickupDeadlineHours
impl RefUnwindSafe for TaskCreateRequestPickupDeadlineHours
impl Send for TaskCreateRequestPickupDeadlineHours
impl Sync for TaskCreateRequestPickupDeadlineHours
impl Unpin for TaskCreateRequestPickupDeadlineHours
impl UnsafeUnpin for TaskCreateRequestPickupDeadlineHours
impl UnwindSafe for TaskCreateRequestPickupDeadlineHours
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