pub struct RedeemVoucherEvent {
pub kind: RedeemVoucherEventType,
pub amount: u64,
pub factions: Vec<RedeemVoucherEventFaction>,
pub faction: Option<String>,
pub broker_percentage: Option<f32>,
}
Expand description
Fired when redeeming any kind of voucher.
Fields§
§kind: RedeemVoucherEventType
The type of voucher redeemed.
amount: u64
The number of credits that were received from redeeming the voucher.
factions: Vec<RedeemVoucherEventFaction>
List of factions that are linked to the voucher.
faction: Option<String>
This is used instead of the [factions] field when the [kind] is RedeemVoucherEventType::Bounty.
broker_percentage: Option<f32>
Percentage that the broker received for redeeming the voucher.
Trait Implementations§
Source§impl Clone for RedeemVoucherEvent
impl Clone for RedeemVoucherEvent
Source§fn clone(&self) -> RedeemVoucherEvent
fn clone(&self) -> RedeemVoucherEvent
Returns a copy 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 RedeemVoucherEvent
impl Debug for RedeemVoucherEvent
Source§impl<'de> Deserialize<'de> for RedeemVoucherEvent
impl<'de> Deserialize<'de> for RedeemVoucherEvent
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
Source§impl PartialEq for RedeemVoucherEvent
impl PartialEq for RedeemVoucherEvent
Source§impl Serialize for RedeemVoucherEvent
impl Serialize for RedeemVoucherEvent
impl StructuralPartialEq for RedeemVoucherEvent
Auto Trait Implementations§
impl Freeze for RedeemVoucherEvent
impl RefUnwindSafe for RedeemVoucherEvent
impl Send for RedeemVoucherEvent
impl Sync for RedeemVoucherEvent
impl Unpin for RedeemVoucherEvent
impl UnwindSafe for RedeemVoucherEvent
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