pub struct Ratio {
pub id: Option<Id>,
pub extension: Option<Vec<Extension>>,
pub numerator: Option<Quantity>,
pub denominator: Option<Quantity>,
}
Fields§
§id: Option<Id>
Unique id for inter-element referencing
extension: Option<Vec<Extension>>
Additional content defined by implementations
numerator: Option<Quantity>
Numerator value
denominator: Option<Quantity>
Denominator value
Implementations§
Source§impl Ratio
impl Ratio
pub fn set_numerator(self, v: Quantity) -> Self
pub fn set_denominator(self, v: Quantity) -> Self
Trait Implementations§
Source§impl Convert for Ratio
impl Convert for Ratio
fn to_integer(&self) -> Result<Integer>
fn to_decimal(&self) -> Result<Decimal>
fn to_strings(&self) -> Result<String>
fn to_datetime(&self) -> Result<DateTime>
fn to_boolean(&self) -> Result<Boolean>
Source§impl<'de> Deserialize<'de> for Ratio
impl<'de> Deserialize<'de> for Ratio
fn deserialize<De>(deserializer: De) -> Result<Self>where
De: Deserializer<'de>,
Source§impl Executor for Ratio
impl Executor for Ratio
fn element(&self, symbol: &String, index: &Option<usize>) -> Result<Collection>
fn to_collection(&self, index: &Option<usize>) -> Collection
fn child(&self, _index: usize) -> Result<Collection>
impl DataType for Ratio
Auto Trait Implementations§
impl Freeze for Ratio
impl RefUnwindSafe for Ratio
impl Send for Ratio
impl Sync for Ratio
impl Unpin for Ratio
impl UnwindSafe for Ratio
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