[−][src]Struct license_key::LicenseKey
Represents a generated or parsed license key.
Implementations
impl LicenseKey
[src]
pub fn parse<T: Serializer>(input: &str) -> LicenseKey
[src]
Deserializes a &str
into a license key by using the
provided Serializer
.
pub fn serialize<T: Serializer>(&self) -> String
[src]
Serializes the license key into a String
by using the
provided Serializer
.
pub fn get_bytes(&self) -> Vec<u8>
[src]
Gets the individual bytes that makes up the license key.
Trait Implementations
impl Clone for LicenseKey
[src]
fn clone(&self) -> LicenseKey
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for LicenseKey
[src]
Auto Trait Implementations
impl RefUnwindSafe for LicenseKey
impl Send for LicenseKey
impl Sync for LicenseKey
impl Unpin for LicenseKey
impl UnwindSafe for LicenseKey
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,