Struct codes_agency::Standard
source · pub struct Standard { /* private fields */ }Expand description
This structure allows for the description of a specific standard, or specification, issued by a well-known standards agency. Note that different versions of a standard should be different instances with at least different long references.
Implementations§
source§impl Standard
impl Standard
sourcepub const fn new(
agency: Agency,
short_ref: &'static str,
title: &'static str,
url: &'static str
) -> Self
pub const fn new(
agency: Agency,
short_ref: &'static str,
title: &'static str,
url: &'static str
) -> Self
Create a new Standard without a long reference value.
sourcepub const fn new_with_long_ref(
agency: Agency,
short_ref: &'static str,
long_ref: &'static str,
title: &'static str,
url: &'static str
) -> Self
pub const fn new_with_long_ref(
agency: Agency,
short_ref: &'static str,
long_ref: &'static str,
title: &'static str,
url: &'static str
) -> Self
Create a new Standard with a long reference value.
sourcepub const fn short_ref(&self) -> &'static str
pub const fn short_ref(&self) -> &'static str
Return the short reference, or number, of this standard.
Trait Implementations§
source§impl Deserialize<'static> for Standard
impl Deserialize<'static> for Standard
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'static>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'static>,
Deserialize this value from the given Serde deserializer. Read more