pub struct LevelView {
pub downline_count: Option<i32>,
pub level: Option<i32>,
pub rate_bps: Option<i32>,
}Fields§
§downline_count: Option<i32>DownlineCount is how many orgs sit exactly this many hops below the caller. It is 0 in the schedule quoted to a caller that has not applied, which has no downline to count.
level: Option<i32>Level is the upline distance from the org whose spend is being shared: 1 is the direct referrer, 2 and 3 the referrers above it. Nothing accrues past 3.
rate_bps: Option<i32>RateBps is the commission paid at this level, in basis points OF Hanzo’s margin (2000 = 20% of margin, never of the customer’s bill). Level 1 is the affiliate’s own negotiated rate; 2 and 3 are platform switches read live, so this is the schedule actually in force, not one compiled in.
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for LevelView
impl<'de> Deserialize<'de> for LevelView
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
impl StructuralPartialEq for LevelView
Auto Trait Implementations§
impl Freeze for LevelView
impl RefUnwindSafe for LevelView
impl Send for LevelView
impl Sync for LevelView
impl Unpin for LevelView
impl UnsafeUnpin for LevelView
impl UnwindSafe for LevelView
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