pub struct SupporterStatus {
pub is_supporter: bool,
pub masked_key: Option<String>,
pub last_validated_at: Option<DateTime<Utc>>,
}Fields§
§is_supporter: bool§masked_key: Option<String>§last_validated_at: Option<DateTime<Utc>>Implementations§
Source§impl SupporterStatus
impl SupporterStatus
pub fn from_record(record: Option<&SupporterRecord>, now: DateTime<Utc>) -> Self
Trait Implementations§
Source§impl Clone for SupporterStatus
impl Clone for SupporterStatus
Source§fn clone(&self) -> SupporterStatus
fn clone(&self) -> SupporterStatus
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 SupporterStatus
impl Debug for SupporterStatus
Auto Trait Implementations§
impl Freeze for SupporterStatus
impl RefUnwindSafe for SupporterStatus
impl Send for SupporterStatus
impl Sync for SupporterStatus
impl Unpin for SupporterStatus
impl UnsafeUnpin for SupporterStatus
impl UnwindSafe for SupporterStatus
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