#[non_exhaustive]pub struct ProductAttributeInterval {
pub name: String,
pub interval: Option<Interval>,
/* private fields */
}Expand description
Product attribute name and numeric interval.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.name: StringThe attribute name (e.g. “length”)
interval: Option<Interval>The numeric interval (e.g. [10, 20))
Implementations§
Source§impl ProductAttributeInterval
impl ProductAttributeInterval
Sourcepub fn set_interval<T>(self, v: T) -> Self
pub fn set_interval<T>(self, v: T) -> Self
Sourcepub fn set_or_clear_interval<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_interval<T>(self, v: Option<T>) -> Self
Trait Implementations§
Source§impl Clone for ProductAttributeInterval
impl Clone for ProductAttributeInterval
Source§fn clone(&self) -> ProductAttributeInterval
fn clone(&self) -> ProductAttributeInterval
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 ProductAttributeInterval
impl Debug for ProductAttributeInterval
Source§impl Default for ProductAttributeInterval
impl Default for ProductAttributeInterval
Source§fn default() -> ProductAttributeInterval
fn default() -> ProductAttributeInterval
Returns the “default value” for a type. Read more
Source§impl Message for ProductAttributeInterval
impl Message for ProductAttributeInterval
Source§impl PartialEq for ProductAttributeInterval
impl PartialEq for ProductAttributeInterval
impl StructuralPartialEq for ProductAttributeInterval
Auto Trait Implementations§
impl Freeze for ProductAttributeInterval
impl RefUnwindSafe for ProductAttributeInterval
impl Send for ProductAttributeInterval
impl Sync for ProductAttributeInterval
impl Unpin for ProductAttributeInterval
impl UnsafeUnpin for ProductAttributeInterval
impl UnwindSafe for ProductAttributeInterval
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