pub struct Benefit {
pub id: Uuid,
pub created_at: DateTime<Utc>,
pub modified_at: Option<DateTime<Utc>>,
pub type: BenefitType,
pub description: String,
pub selectable: bool,
pub deletable: bool,
pub organization_id: Uuid,
}Fields§
§id: UuidThe ID of the benefit.
created_at: DateTime<Utc>Creation timestamp of the object.
modified_at: Option<DateTime<Utc>>Last modification timestamp of the object.
type: BenefitTypeThe type of the benefit.
description: StringThe description of the benefit.
selectable: boolWhether the benefit is selectable when creating a product.
deletable: boolWhether the benefit is deletable.
organization_id: UuidThe ID of the organization owning the benefit.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Benefit
impl<'de> Deserialize<'de> for Benefit
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
Auto Trait Implementations§
impl Freeze for Benefit
impl RefUnwindSafe for Benefit
impl Send for Benefit
impl Sync for Benefit
impl Unpin for Benefit
impl UnwindSafe for Benefit
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