pub struct Constant {
pub name: &'static str,
pub value: String,
}
Expand description
Contains several commonly used mathematical and cryptographic constants.
Fields§
§name: &'static str
The name of the constant.
value: String
The value of the constant.
Trait Implementations§
source§impl Deserialize<'static> for Constant
impl Deserialize<'static> for Constant
source§fn deserialize<__D>(
__deserializer: __D
) -> Result<Constant, <__D as Deserializer<'static>>::Error>where
__D: Deserializer<'static>,
fn deserialize<__D>(
__deserializer: __D
) -> Result<Constant, <__D as Deserializer<'static>>::Error>where
__D: Deserializer<'static>,
Deserialize this value from the given Serde deserializer. Read more
source§impl Serialize for Constant
impl Serialize for Constant
source§fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more