pub struct OrgEarningView {
pub commission_cents: Option<i32>,
pub referred_org: Option<String>,
}Fields§
§commission_cents: Option<i32>CommissionCents is what the caller earned from that org across ALL periods, in cents. Deliberately the caller’s own share and nothing else: that org’s spend and the margin on it are not restated here.
referred_org: Option<String>ReferredOrg is the org slug this contribution came from — one the caller referred, directly or up to three levels down.
Implementations§
Source§impl OrgEarningView
impl OrgEarningView
pub fn new() -> OrgEarningView
Trait Implementations§
Source§impl Clone for OrgEarningView
impl Clone for OrgEarningView
Source§fn clone(&self) -> OrgEarningView
fn clone(&self) -> OrgEarningView
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 OrgEarningView
impl Debug for OrgEarningView
Source§impl Default for OrgEarningView
impl Default for OrgEarningView
Source§fn default() -> OrgEarningView
fn default() -> OrgEarningView
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for OrgEarningView
impl<'de> Deserialize<'de> for OrgEarningView
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 OrgEarningView
impl PartialEq for OrgEarningView
Source§impl Serialize for OrgEarningView
impl Serialize for OrgEarningView
impl StructuralPartialEq for OrgEarningView
Auto Trait Implementations§
impl Freeze for OrgEarningView
impl RefUnwindSafe for OrgEarningView
impl Send for OrgEarningView
impl Sync for OrgEarningView
impl Unpin for OrgEarningView
impl UnsafeUnpin for OrgEarningView
impl UnwindSafe for OrgEarningView
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