pub struct ValuationInput {
pub name: String,
pub value: Decimal,
pub unit: String,
pub observable: bool,
pub source: String,
}Expand description
Valuation input used in fair value measurement.
Fields§
§name: StringInput name/description.
value: DecimalInput value.
unit: StringUnit of measurement.
observable: boolWhether this is an observable or unobservable input.
source: StringSource of the input.
Implementations§
Source§impl ValuationInput
impl ValuationInput
Sourcepub fn new(
name: impl Into<String>,
value: Decimal,
unit: impl Into<String>,
observable: bool,
source: impl Into<String>,
) -> Self
pub fn new( name: impl Into<String>, value: Decimal, unit: impl Into<String>, observable: bool, source: impl Into<String>, ) -> Self
Create a new valuation input.
Sourcepub fn discount_rate(rate: Decimal, source: impl Into<String>) -> Self
pub fn discount_rate(rate: Decimal, source: impl Into<String>) -> Self
Create a discount rate input.
Sourcepub fn growth_rate(rate: Decimal, source: impl Into<String>) -> Self
pub fn growth_rate(rate: Decimal, source: impl Into<String>) -> Self
Create an expected growth rate input.
Trait Implementations§
Source§impl Clone for ValuationInput
impl Clone for ValuationInput
Source§fn clone(&self) -> ValuationInput
fn clone(&self) -> ValuationInput
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 ValuationInput
impl Debug for ValuationInput
Source§impl<'de> Deserialize<'de> for ValuationInput
impl<'de> Deserialize<'de> for ValuationInput
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
Auto Trait Implementations§
impl Freeze for ValuationInput
impl RefUnwindSafe for ValuationInput
impl Send for ValuationInput
impl Sync for ValuationInput
impl Unpin for ValuationInput
impl UnwindSafe for ValuationInput
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