pub struct DeliveryClaim {
pub owner_id: Uuid,
pub local_date: NaiveDate,
pub kind: DeliveryKind,
}Expand description
The right to send one kind of notification to one owner on one local date.
Fields§
§owner_id: UuidThe account the notification is for.
local_date: NaiveDateThe date in the owner’s time zone the notification belongs to.
kind: DeliveryKindThe kind of notification.
Implementations§
Source§impl DeliveryClaim
impl DeliveryClaim
Sourcepub const fn new(
owner_id: Uuid,
local_date: NaiveDate,
kind: DeliveryKind,
) -> Self
pub const fn new( owner_id: Uuid, local_date: NaiveDate, kind: DeliveryKind, ) -> Self
Creates a claim key.
Trait Implementations§
Source§impl Clone for DeliveryClaim
impl Clone for DeliveryClaim
Source§impl Debug for DeliveryClaim
impl Debug for DeliveryClaim
impl Eq for DeliveryClaim
Source§impl Hash for DeliveryClaim
impl Hash for DeliveryClaim
Source§impl PartialEq for DeliveryClaim
impl PartialEq for DeliveryClaim
impl StructuralPartialEq for DeliveryClaim
Auto Trait Implementations§
impl Freeze for DeliveryClaim
impl RefUnwindSafe for DeliveryClaim
impl Send for DeliveryClaim
impl Sync for DeliveryClaim
impl Unpin for DeliveryClaim
impl UnsafeUnpin for DeliveryClaim
impl UnwindSafe for DeliveryClaim
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.