pub struct HolidaysHoliday {
pub country_code: Option<String>,
pub date: Option<String>,
pub delivery_guarantee_date: Option<String>,
pub delivery_guarantee_hour: Option<u64>,
pub id: Option<String>,
pub type_: Option<String>,
}Expand description
There is no detailed description.
This type is not used in any activity, and only used as part of another schema.
Fields§
§country_code: Option<String>The CLDR territory code of the country in which the holiday is available. E.g. “US”, “DE”, “GB”. A holiday cutoff can only be configured in a shipping settings service with matching delivery country. Always present.
date: Option<String>Date of the holiday, in ISO 8601 format. E.g. “2016-12-25” for Christmas 2016. Always present.
delivery_guarantee_date: Option<String>Date on which the order has to arrive at the customer’s, in ISO 8601 format. E.g. “2016-12-24” for 24th December 2016. Always present.
delivery_guarantee_hour: Option<u64>Hour of the day in the delivery location’s timezone on the guaranteed delivery date by which the order has to arrive at the customer’s. Possible values are: 0 (midnight), 1, …, 12 (noon), 13, …, 23. Always present.
id: Option<String>Unique identifier for the holiday to be used when configuring holiday cutoffs. Always present.
type_: Option<String>The holiday type. Always present. Acceptable values are: - “Christmas” - “Easter” - “Father's Day” - “Halloween” - “Independence Day (USA)” - “Mother's Day” - “Thanksgiving” - “Valentine's Day”
Trait Implementations§
Source§impl Clone for HolidaysHoliday
impl Clone for HolidaysHoliday
Source§fn clone(&self) -> HolidaysHoliday
fn clone(&self) -> HolidaysHoliday
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more