pub struct BenchmarkYear(/* private fields */);Expand description
An open, representation-preserving executive-compensation benchmark query year.
Implementations§
Source§impl BenchmarkYear
impl BenchmarkYear
Sourcepub fn new(value: impl Into<String>) -> Result<Self, StringValueError>
pub fn new(value: impl Into<String>) -> Result<Self, StringValueError>
Validates and constructs a value while preserving its representation.
Sourcepub fn into_inner(self) -> String
pub fn into_inner(self) -> String
Returns the original, unnormalized representation.
Trait Implementations§
Source§impl AsRef<str> for BenchmarkYear
impl AsRef<str> for BenchmarkYear
Source§impl Clone for BenchmarkYear
impl Clone for BenchmarkYear
Source§impl Debug for BenchmarkYear
impl Debug for BenchmarkYear
Source§impl<'de> Deserialize<'de> for BenchmarkYear
impl<'de> Deserialize<'de> for BenchmarkYear
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
Source§impl Display for BenchmarkYear
impl Display for BenchmarkYear
impl Eq for BenchmarkYear
Source§impl FromStr for BenchmarkYear
impl FromStr for BenchmarkYear
Source§impl Hash for BenchmarkYear
impl Hash for BenchmarkYear
Source§impl Ord for BenchmarkYear
impl Ord for BenchmarkYear
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialEq for BenchmarkYear
impl PartialEq for BenchmarkYear
Source§impl PartialOrd for BenchmarkYear
impl PartialOrd for BenchmarkYear
Source§impl Serialize for BenchmarkYear
impl Serialize for BenchmarkYear
impl StructuralPartialEq for BenchmarkYear
Source§impl TryFrom<&str> for BenchmarkYear
impl TryFrom<&str> for BenchmarkYear
Auto Trait Implementations§
impl Freeze for BenchmarkYear
impl RefUnwindSafe for BenchmarkYear
impl Send for BenchmarkYear
impl Sync for BenchmarkYear
impl Unpin for BenchmarkYear
impl UnsafeUnpin for BenchmarkYear
impl UnwindSafe for BenchmarkYear
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