#[non_exhaustive]pub struct TreasuryYield {Show 14 fields
pub date: String,
pub y1m: Option<f64>,
pub y2m: Option<f64>,
pub y3m: Option<f64>,
pub y4m: Option<f64>,
pub y6m: Option<f64>,
pub y1: Option<f64>,
pub y2: Option<f64>,
pub y3: Option<f64>,
pub y5: Option<f64>,
pub y7: Option<f64>,
pub y10: Option<f64>,
pub y20: Option<f64>,
pub y30: Option<f64>,
}Expand description
One day of US Treasury yield curve rates.
Maturities with no published rate on a given date are None.
Obtain via super::treasury_yields.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.date: StringDate as MM/DD/YYYY (Treasury’s native format)
y1m: Option<f64>1-month Treasury yield (%)
y2m: Option<f64>2-month Treasury yield (%)
y3m: Option<f64>3-month Treasury yield (%)
y4m: Option<f64>4-month Treasury yield (%)
y6m: Option<f64>6-month Treasury yield (%)
y1: Option<f64>1-year Treasury yield (%)
y2: Option<f64>2-year Treasury yield (%)
y3: Option<f64>3-year Treasury yield (%)
y5: Option<f64>5-year Treasury yield (%)
y7: Option<f64>7-year Treasury yield (%)
y10: Option<f64>10-year Treasury yield (%)
y20: Option<f64>20-year Treasury yield (%)
y30: Option<f64>30-year Treasury yield (%)
Trait Implementations§
Source§impl Clone for TreasuryYield
impl Clone for TreasuryYield
Source§fn clone(&self) -> TreasuryYield
fn clone(&self) -> TreasuryYield
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 TreasuryYield
impl Debug for TreasuryYield
Source§impl<'de> Deserialize<'de> for TreasuryYield
impl<'de> Deserialize<'de> for TreasuryYield
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 TreasuryYield
impl RefUnwindSafe for TreasuryYield
impl Send for TreasuryYield
impl Sync for TreasuryYield
impl Unpin for TreasuryYield
impl UnsafeUnpin for TreasuryYield
impl UnwindSafe for TreasuryYield
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> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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