Struct ForecastId
pub struct ForecastId(/* private fields */);Expand description
A non-empty forecast identifier.
Implementations§
§impl ForecastId
impl ForecastId
pub fn new(value: impl AsRef<str>) -> Result<ForecastId, ForecastValueError>
pub fn new(value: impl AsRef<str>) -> Result<ForecastId, ForecastValueError>
Creates a forecast identifier from non-empty text.
§Errors
Returns ForecastValueError::EmptyForecastId when the identifier is empty.
Trait Implementations§
§impl Clone for ForecastId
impl Clone for ForecastId
§fn clone(&self) -> ForecastId
fn clone(&self) -> ForecastId
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 more§impl Debug for ForecastId
impl Debug for ForecastId
§impl Display for ForecastId
impl Display for ForecastId
§impl FromStr for ForecastId
impl FromStr for ForecastId
§type Err = ForecastValueError
type Err = ForecastValueError
The associated error which can be returned from parsing.
§fn from_str(value: &str) -> Result<ForecastId, <ForecastId as FromStr>::Err>
fn from_str(value: &str) -> Result<ForecastId, <ForecastId as FromStr>::Err>
Parses a string
s to return a value of this type. Read more§impl Hash for ForecastId
impl Hash for ForecastId
§impl Ord for ForecastId
impl Ord for ForecastId
§impl PartialEq for ForecastId
impl PartialEq for ForecastId
§impl PartialOrd for ForecastId
impl PartialOrd for ForecastId
impl Eq for ForecastId
impl StructuralPartialEq for ForecastId
Auto Trait Implementations§
impl Freeze for ForecastId
impl RefUnwindSafe for ForecastId
impl Send for ForecastId
impl Sync for ForecastId
impl Unpin for ForecastId
impl UnsafeUnpin for ForecastId
impl UnwindSafe for ForecastId
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