pub struct ReturnConstraint {
pub latest_return: i32,
pub earliest_return: i32,
pub excluded_weekdays: Option<Option<Vec<i32>>>,
}Expand description
ReturnConstraint : a return trip with the same carrier must be sold in combination
Fields§
§latest_return: i32number of days after departure or start of validity of the last return
earliest_return: i32number of days after departure or start of validity of the earliest return
excluded_weekdays: Option<Option<Vec<i32>>>weekdays (ISO day of the week, 1 = Monday) between travel and return where travel is not allowed
Implementations§
Source§impl ReturnConstraint
impl ReturnConstraint
Sourcepub fn new(latest_return: i32, earliest_return: i32) -> ReturnConstraint
pub fn new(latest_return: i32, earliest_return: i32) -> ReturnConstraint
a return trip with the same carrier must be sold in combination
Trait Implementations§
Source§impl Clone for ReturnConstraint
impl Clone for ReturnConstraint
Source§fn clone(&self) -> ReturnConstraint
fn clone(&self) -> ReturnConstraint
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ReturnConstraint
impl Debug for ReturnConstraint
Source§impl Default for ReturnConstraint
impl Default for ReturnConstraint
Source§fn default() -> ReturnConstraint
fn default() -> ReturnConstraint
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ReturnConstraint
impl<'de> Deserialize<'de> for ReturnConstraint
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 PartialEq for ReturnConstraint
impl PartialEq for ReturnConstraint
Source§impl Serialize for ReturnConstraint
impl Serialize for ReturnConstraint
impl StructuralPartialEq for ReturnConstraint
Auto Trait Implementations§
impl Freeze for ReturnConstraint
impl RefUnwindSafe for ReturnConstraint
impl Send for ReturnConstraint
impl Sync for ReturnConstraint
impl Unpin for ReturnConstraint
impl UnwindSafe for ReturnConstraint
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