Struct iso3166_3::FormerCountryCode [] [src]

pub struct FormerCountryCode<'a> {
    pub code: &'a str,
    pub codes_former: FormerCountryCodeCodes<'a>,
    pub description: &'a str,
    pub name: &'a str,
    pub validity: [i16; 2],
}

Struct defining a Former Country Code as defined by ISO 3166-3. This contains 5 pieces of information:

  • code: Four-letter code assigned for former country name;
  • codes_former: Field containing a FormerCountryCodeCodes struct;
  • description: Reason why code was deprecated (eg: country merge, divided);
  • name: The former country name;
  • validity: The period in years of which this code was valid.

This struct derives Clone and Debug.

Fields

code: &'a str codes_former: FormerCountryCodeCodes<'a> description: &'a str name: &'a str validity: [i16; 2]

Trait Implementations

impl<'a> Debug for FormerCountryCode<'a>
[src]

fn fmt(&self, __arg_0: &mut Formatter) -> Result

Formats the value using the given formatter.

impl<'a> Clone for FormerCountryCode<'a>
[src]

fn clone(&self) -> FormerCountryCode<'a>

Returns a copy of the value. Read more

fn clone_from(&mut self, source: &Self)
1.0.0

Performs copy-assignment from source. Read more