[−][src]Struct billecta::AmountView
Fields
value: i64
currency_code: CurrencyCode
Methods
impl AmountView
[src]
pub fn fractions(n: i64) -> Self
[src]
pub fn with_currency(&self, cc: CurrencyCode) -> Self
[src]
pub fn short<'a>(&'a self) -> ShortAmountView<'a>
[src]
Trait Implementations
impl<T> Add<T> for AmountView where
T: Borrow<Self>,
[src]
T: Borrow<Self>,
type Output = Self
The resulting type after applying the +
operator.
fn add(self, other: T) -> Self
[src]
impl<T> AddAssign<T> for AmountView where
T: Borrow<Self>,
[src]
T: Borrow<Self>,
fn add_assign(&mut self, other: T)
[src]
impl Clone for AmountView
[src]
fn clone(&self) -> AmountView
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Copy for AmountView
[src]
impl Debug for AmountView
[src]
impl Default for AmountView
[src]
fn default() -> AmountView
[src]
impl<'de> Deserialize<'de> for AmountView
[src]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
impl Display for AmountView
[src]
impl Eq for AmountView
[src]
impl Mul<f64> for AmountView
[src]
type Output = Self
The resulting type after applying the *
operator.
fn mul(self, other: f64) -> Self::Output
[src]
impl<'_> Mul<f64> for &'_ AmountView
[src]
type Output = AmountView
The resulting type after applying the *
operator.
fn mul(self, other: f64) -> Self::Output
[src]
impl Ord for AmountView
[src]
fn cmp(&self, other: &Self) -> Ordering
[src]
#[must_use]
fn max(self, other: Self) -> Self
1.21.0[src]
#[must_use]
fn min(self, other: Self) -> Self
1.21.0[src]
#[must_use]
fn clamp(self, min: Self, max: Self) -> Self
[src]
impl PartialEq<AmountView> for AmountView
[src]
fn eq(&self, other: &AmountView) -> bool
[src]
fn ne(&self, other: &AmountView) -> bool
[src]
impl PartialOrd<AmountView> for AmountView
[src]
fn partial_cmp(&self, other: &Self) -> Option<Ordering>
[src]
#[must_use]
fn lt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]
fn le(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]
fn gt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]
fn ge(&self, other: &Rhs) -> bool
1.0.0[src]
impl Serialize for AmountView
[src]
fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error> where
__S: Serializer,
[src]
__S: Serializer,
impl StructuralEq for AmountView
[src]
impl StructuralPartialEq for AmountView
[src]
impl<T> Sub<T> for AmountView where
T: Borrow<Self>,
[src]
T: Borrow<Self>,
type Output = Self
The resulting type after applying the -
operator.
fn sub(self, other: T) -> Self
[src]
impl<A> Sum<A> for AmountView where
A: Borrow<Self>,
[src]
A: Borrow<Self>,
Auto Trait Implementations
impl RefUnwindSafe for AmountView
impl Send for AmountView
impl Sync for AmountView
impl Unpin for AmountView
impl UnwindSafe for AmountView
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> DeserializeOwned for T where
T: Deserialize<'de>,
[src]
T: Deserialize<'de>,
impl<Q, K> Equivalent<K> for Q where
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized,
[src]
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized,
fn equivalent(&self, key: &K) -> bool
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,