pub struct CreateQuoteRequest {
Show 14 fields pub pickup_address: String, pub dropoff_address: String, pub dropoff_latitude: Option<f64>, pub dropoff_longitude: Option<f64>, pub dropoff_phone_number: Option<String>, pub pickup_latitude: Option<f64>, pub pickup_longitude: Option<f64>, pub pickup_phone_number: Option<String>, pub pickup_ready_dt: Option<LocalDateTime>, pub pickup_deadline_dt: Option<LocalDateTime>, pub dropoff_ready_dt: Option<LocalDateTime>, pub dropoff_deadline_dt: Option<LocalDateTime>, pub manifest_total_value: Option<i64>, pub external_store_id: Option<String>,
}
Expand description

Request Body Parameters

NameTypeDescription
dropoff_addressstring(required) Dropoff address in Street Address, City, State, Zip format
pickup_addressstring(required) Pickup address in Street Address, City, State, Zip format
dropoff_latitudedoubleDropoff latitude coordinate
dropoff_longitudedoubleDropoff longitude coordinate
dropoff_phone_numberstringPhone number of recipient
pickup_latitudedoublePickup latitude coordinate
pickup_longitudedoublePickup longitude coordinate
pickup_phone_numberstringPhone number of sender/store
pickup_ready_dttimestamp (RFC 3339)Beginning of the window when an order must be picked up. Must be less than 30 days in the future.
pickup_deadline_dttimestamp (RFC 3339)End of the window when an order may be picked up. Must be at least 10 mins later than pickup_ready_dt and at least 20 minutes in the future from now.
dropoff_ready_dttimestamp (RFC 3339)Beginning of the window when an order must be dropped off. Must be less than or equal to pickup_deadline_dt
dropoff_deadline_dttimestamp (RFC 3339)End of the window when an order must be dropped off. Must be at least 20 mins later than dropoff_ready_dt and must be greater than or equal to pickup_deadline_dt.
manifest_total_valueintegerValue (in US cents) of the items in the delivery. i.e.: $10.99 => 1099.
external_store_idstring(Optional) Unique identifier used by our Partners to reference a Store or Location

Fields§

§pickup_address: String§dropoff_address: String§dropoff_latitude: Option<f64>§dropoff_longitude: Option<f64>§dropoff_phone_number: Option<String>§pickup_latitude: Option<f64>§pickup_longitude: Option<f64>§pickup_phone_number: Option<String>§pickup_ready_dt: Option<LocalDateTime>§pickup_deadline_dt: Option<LocalDateTime>§dropoff_ready_dt: Option<LocalDateTime>§dropoff_deadline_dt: Option<LocalDateTime>§manifest_total_value: Option<i64>§external_store_id: Option<String>

Implementations§

source§

impl CreateQuoteRequest

source

pub fn new(pickup_address: String, dropoff_address: String) -> Self

Trait Implementations§

source§

impl Default for CreateQuoteRequest

source§

fn default() -> CreateQuoteRequest

Returns the “default value” for a type. Read more
source§

impl Serialize for CreateQuoteRequest

source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>where __S: Serializer,

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere T: ?Sized,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere T: ?Sized,

const: unstable · source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T> Instrument for T

source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for Twhere U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T, U> TryFrom<U> for Twhere U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
source§

impl<T> WithSubscriber for T

source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more