[][src]Struct cdpay::OrderID

pub struct OrderID(_);

User-defined order ID.

This is a newtype in order to avoid potential mistakes and make the code more clear.

Methods

impl OrderID[src]

pub fn new(order_id: String) -> Option<Self>[src]

Creates OrderID from given string

Trait Implementations

impl<'a> AsRef<str> for OrderID[src]

impl From<OrderID> for String[src]

impl<'a> From<&'a OrderID> for &'a str[src]

Auto Trait Implementations

impl Send for OrderID

impl Sync for OrderID

Blanket Implementations

impl<T> From for T[src]

impl<T, U> Into for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> BorrowMut for T where
    T: ?Sized
[src]

impl<T> Erased for T

impl<T> SendSyncUnwindSafe for T where
    T: Send + Sync + UnwindSafe + ?Sized
[src]