pub struct YieldSource {
pub yield_type: YieldSourceType,
}
Expand description
Wrapper type for the origin of rewards from a strategy
Fields§
§yield_type: YieldSourceType
Trait Implementations§
Source§impl Clone for YieldSource
impl Clone for YieldSource
Source§fn clone(&self) -> YieldSource
fn clone(&self) -> YieldSource
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 YieldSource
impl Debug for YieldSource
Source§impl<'de> Deserialize<'de> for YieldSource
impl<'de> Deserialize<'de> for YieldSource
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 YieldSource
impl PartialEq for YieldSource
impl StructuralPartialEq for YieldSource
Auto Trait Implementations§
impl Freeze for YieldSource
impl RefUnwindSafe for YieldSource
impl Send for YieldSource
impl Sync for YieldSource
impl Unpin for YieldSource
impl UnwindSafe for YieldSource
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