pub enum IdentifierKind {
Isin,
Cusip,
Sedol,
Lei,
Figi,
Bic,
Mic,
Cfi,
Wkn,
Valor,
}Expand description
The kind of a securities identifier — its type tag, with no payload.
This is the discriminant of SecurityId: SecurityId::kind returns
it, and it is the natural value to switch on, store, or compare when the
identifier’s type matters but its bytes do not.
§Examples
use regit_identifiers::detect::{IdentifierKind, SecurityId};
let id = SecurityId::detect("US0378331005").unwrap();
assert_eq!(id.kind(), IdentifierKind::Isin);Variants§
Isin
An International Securities Identification Number (ISO 6166).
Cusip
A CUSIP / CINS number (ANSI X9.6).
Sedol
A Stock Exchange Daily Official List number (SEDOL).
Lei
A Legal Entity Identifier (ISO 17442).
Figi
A Financial Instrument Global Identifier (ANSI X9.145).
Bic
A Business Identifier Code (ISO 9362).
Mic
A Market Identifier Code (ISO 10383).
Cfi
A Classification of Financial Instruments code (ISO 10962).
Wkn
A Wertpapierkennnummer (German national number).
Valor
A Valorennummer (Swiss national number).
Trait Implementations§
Source§impl Clone for IdentifierKind
impl Clone for IdentifierKind
Source§fn clone(&self) -> IdentifierKind
fn clone(&self) -> IdentifierKind
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for IdentifierKind
Source§impl Debug for IdentifierKind
impl Debug for IdentifierKind
impl Eq for IdentifierKind
Source§impl PartialEq for IdentifierKind
impl PartialEq for IdentifierKind
impl StructuralPartialEq for IdentifierKind
Auto Trait Implementations§
impl Freeze for IdentifierKind
impl RefUnwindSafe for IdentifierKind
impl Send for IdentifierKind
impl Sync for IdentifierKind
impl Unpin for IdentifierKind
impl UnsafeUnpin for IdentifierKind
impl UnwindSafe for IdentifierKind
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