Struct bank::scr::OGM
[−]
[src]
pub struct OGM { /* fields omitted */ }
Methods
impl OGM
[src]
fn calculate_check(&self) -> u8
fn new(input: u64) -> Result<OGM, &'static str>
Creates a Belgian structured message from a seed.
The seed needs to be maximally 1010 - 1.
Example
let ogm = bank::scr::OGM::new(201709635u64).unwrap(); assert_eq!(ogm.to_string(), "+++020/1709/63575+++");
Trait Implementations
impl FromStr for OGM
[src]
type Err = &'static str
The associated error which can be returned from parsing.
fn from_str(input: &str) -> Result<OGM, Self::Err>
Parses a string s
to return a value of this type. Read more