pub struct SubstitutionPreferences {
pub substitution_type: SubstitutionType,
pub substitution_options: Option<Vec<SubstitutionOption>>,
}Expand description
SubstitutionPreferences : Substitution preferences for an order item.
Fields§
§substitution_type: SubstitutionTypeThe type of substitution that these preferences represent.
substitution_options: Option<Vec<SubstitutionOption>>A collection of substitution options.
Implementations§
Source§impl SubstitutionPreferences
impl SubstitutionPreferences
Sourcepub fn new(substitution_type: SubstitutionType) -> SubstitutionPreferences
pub fn new(substitution_type: SubstitutionType) -> SubstitutionPreferences
Substitution preferences for an order item.
Trait Implementations§
Source§impl Clone for SubstitutionPreferences
impl Clone for SubstitutionPreferences
Source§fn clone(&self) -> SubstitutionPreferences
fn clone(&self) -> SubstitutionPreferences
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 SubstitutionPreferences
impl Debug for SubstitutionPreferences
Source§impl Default for SubstitutionPreferences
impl Default for SubstitutionPreferences
Source§fn default() -> SubstitutionPreferences
fn default() -> SubstitutionPreferences
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for SubstitutionPreferences
impl<'de> Deserialize<'de> for SubstitutionPreferences
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 SubstitutionPreferences
impl PartialEq for SubstitutionPreferences
Source§impl Serialize for SubstitutionPreferences
impl Serialize for SubstitutionPreferences
impl StructuralPartialEq for SubstitutionPreferences
Auto Trait Implementations§
impl Freeze for SubstitutionPreferences
impl RefUnwindSafe for SubstitutionPreferences
impl Send for SubstitutionPreferences
impl Sync for SubstitutionPreferences
impl Unpin for SubstitutionPreferences
impl UnwindSafe for SubstitutionPreferences
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