pub struct SubGiftPromo<'src> { /* private fields */ }Expand description
Used in Event::GiftPaidUpgrade and Event::AnonGiftPaidUpgrade.
Implementations§
Source§impl<'src> SubGiftPromo<'src>
impl<'src> SubGiftPromo<'src>
Sourcepub fn total_gifts(&self) -> u64
pub fn total_gifts(&self) -> u64
Total number of subs gifted during this promotion
Sourcepub fn promo_name(&self) -> &str
pub fn promo_name(&self) -> &str
Display of the promotion, e.g. Subtember 2018
Source§impl<'src> SubGiftPromo<'src>
impl<'src> SubGiftPromo<'src>
Sourcepub fn into_owned(self) -> SubGiftPromo<'static>
pub fn into_owned(self) -> SubGiftPromo<'static>
Clone data to give the value a 'static lifetime.
Trait Implementations§
Source§impl<'src> Clone for SubGiftPromo<'src>
impl<'src> Clone for SubGiftPromo<'src>
Source§fn clone(&self) -> SubGiftPromo<'src>
fn clone(&self) -> SubGiftPromo<'src>
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<'src> Debug for SubGiftPromo<'src>
impl<'src> Debug for SubGiftPromo<'src>
Source§impl<'src> PartialEq for SubGiftPromo<'src>
impl<'src> PartialEq for SubGiftPromo<'src>
impl<'src> Eq for SubGiftPromo<'src>
impl<'src> StructuralPartialEq for SubGiftPromo<'src>
Auto Trait Implementations§
impl<'src> Freeze for SubGiftPromo<'src>
impl<'src> RefUnwindSafe for SubGiftPromo<'src>
impl<'src> Send for SubGiftPromo<'src>
impl<'src> Sync for SubGiftPromo<'src>
impl<'src> Unpin for SubGiftPromo<'src>
impl<'src> UnwindSafe for SubGiftPromo<'src>
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