pub struct StandardId(pub String);Expand description
Canonical identifier for a compliance standard.
Format: "{BODY}-{NUMBER}" (e.g., "IFRS-16", "ISA-315", "SOX-404", "ASC-606")
§Examples
use datasynth_core::models::compliance::StandardId;
let id = StandardId::new("IFRS", "16");
assert_eq!(id.body(), "IFRS");
assert_eq!(id.number(), "16");
assert_eq!(id.as_str(), "IFRS-16");Tuple Fields§
§0: StringImplementations§
Trait Implementations§
Source§impl Clone for StandardId
impl Clone for StandardId
Source§fn clone(&self) -> StandardId
fn clone(&self) -> StandardId
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 StandardId
impl Debug for StandardId
Source§impl<'de> Deserialize<'de> for StandardId
impl<'de> Deserialize<'de> for StandardId
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 StandardId
impl Display for StandardId
Source§impl From<&str> for StandardId
impl From<&str> for StandardId
Source§impl From<String> for StandardId
impl From<String> for StandardId
Source§impl Hash for StandardId
impl Hash for StandardId
Source§impl Ord for StandardId
impl Ord for StandardId
Source§fn cmp(&self, other: &StandardId) -> Ordering
fn cmp(&self, other: &StandardId) -> Ordering
1.21.0 · 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
Source§impl PartialEq for StandardId
impl PartialEq for StandardId
Source§impl PartialOrd for StandardId
impl PartialOrd for StandardId
Source§impl Serialize for StandardId
impl Serialize for StandardId
impl Eq for StandardId
impl StructuralPartialEq for StandardId
Auto Trait Implementations§
impl Freeze for StandardId
impl RefUnwindSafe for StandardId
impl Send for StandardId
impl Sync for StandardId
impl Unpin for StandardId
impl UnsafeUnpin for StandardId
impl UnwindSafe for StandardId
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<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.