pub struct RelativePattern2 {
pub neg_unrealized_loss_rel_to_own_market_cap: MetricPattern1<StoredF32>,
pub neg_unrealized_loss_rel_to_own_total_unrealized_pnl: MetricPattern1<StoredF32>,
pub net_unrealized_pnl_rel_to_own_market_cap: MetricPattern1<StoredF32>,
pub net_unrealized_pnl_rel_to_own_total_unrealized_pnl: MetricPattern1<StoredF32>,
pub supply_in_loss_rel_to_own_supply: MetricPattern1<StoredF64>,
pub supply_in_profit_rel_to_own_supply: MetricPattern1<StoredF64>,
pub unrealized_loss_rel_to_own_market_cap: MetricPattern1<StoredF32>,
pub unrealized_loss_rel_to_own_total_unrealized_pnl: MetricPattern1<StoredF32>,
pub unrealized_profit_rel_to_own_market_cap: MetricPattern1<StoredF32>,
pub unrealized_profit_rel_to_own_total_unrealized_pnl: MetricPattern1<StoredF32>,
}Expand description
Pattern struct for repeated tree structure.
Fields§
§neg_unrealized_loss_rel_to_own_market_cap: MetricPattern1<StoredF32>§neg_unrealized_loss_rel_to_own_total_unrealized_pnl: MetricPattern1<StoredF32>§net_unrealized_pnl_rel_to_own_market_cap: MetricPattern1<StoredF32>§net_unrealized_pnl_rel_to_own_total_unrealized_pnl: MetricPattern1<StoredF32>§supply_in_loss_rel_to_own_supply: MetricPattern1<StoredF64>§supply_in_profit_rel_to_own_supply: MetricPattern1<StoredF64>§unrealized_loss_rel_to_own_market_cap: MetricPattern1<StoredF32>§unrealized_loss_rel_to_own_total_unrealized_pnl: MetricPattern1<StoredF32>§unrealized_profit_rel_to_own_market_cap: MetricPattern1<StoredF32>§unrealized_profit_rel_to_own_total_unrealized_pnl: MetricPattern1<StoredF32>Implementations§
Source§impl RelativePattern2
impl RelativePattern2
Sourcepub fn new(client: Arc<BrkClientBase>, acc: String) -> Self
pub fn new(client: Arc<BrkClientBase>, acc: String) -> Self
Create a new pattern node with accumulated metric name.
Auto Trait Implementations§
impl Freeze for RelativePattern2
impl RefUnwindSafe for RelativePattern2
impl Send for RelativePattern2
impl Sync for RelativePattern2
impl Unpin for RelativePattern2
impl UnwindSafe for RelativePattern2
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more