pub struct DividendOptions {
pub share_count: usize,
pub dividend_options: Vec<(DividendKind, Rounding)>,
}Expand description
The dividend options for a company.
Fields§
The total number of shares.
dividend_options: Vec<(DividendKind, Rounding)>The available dividend options.
Implementations§
Trait Implementations§
Source§impl Clone for DividendOptions
impl Clone for DividendOptions
Source§fn clone(&self) -> DividendOptions
fn clone(&self) -> DividendOptions
Returns a duplicate 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 DividendOptions
impl Debug for DividendOptions
Source§impl Ord for DividendOptions
impl Ord for DividendOptions
Source§fn cmp(&self, other: &DividendOptions) -> Ordering
fn cmp(&self, other: &DividendOptions) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for DividendOptions
impl PartialEq for DividendOptions
Source§impl PartialOrd for DividendOptions
impl PartialOrd for DividendOptions
impl Eq for DividendOptions
impl StructuralPartialEq for DividendOptions
Auto Trait Implementations§
impl Freeze for DividendOptions
impl RefUnwindSafe for DividendOptions
impl Send for DividendOptions
impl Sync for DividendOptions
impl Unpin for DividendOptions
impl UnwindSafe for DividendOptions
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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