pub struct SeriesId(/* private fields */);Expand description
A FRED series identifier, e.g. GNPCA or UNRATE.
A newtype over String so a series id can’t be silently swapped for another
kind of identifier or an arbitrary string (see ADR-0005). Construction does
no validation for now — FRED rejects malformed ids — but the newtype gives
us a place to add it later without changing call sites.
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for SeriesId
impl<'de> Deserialize<'de> for SeriesId
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
impl Eq for SeriesId
impl StructuralPartialEq for SeriesId
Auto Trait Implementations§
impl Freeze for SeriesId
impl RefUnwindSafe for SeriesId
impl Send for SeriesId
impl Sync for SeriesId
impl Unpin for SeriesId
impl UnsafeUnpin for SeriesId
impl UnwindSafe for SeriesId
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