[][src]Struct rpki::x509::Serial

pub struct Serial(_);

A certificate serial number.

Methods

impl Serial[src]

pub fn from_slice(s: &[u8]) -> Result<Self, Error>[src]

Creates a serial number from a octet slice.

pub fn random<S: Signer>(signer: &S) -> Result<Self, S::Error>[src]

Creates a random new serial number.

pub fn short_random<S: Signer>(signer: &S, len: usize) -> Result<Self, S::Error>[src]

Creates a random serial number of a given length.

The len argument provides the number of octets (!) of randomness the serial should have.

Panics

The function panics if len is more than 20.

pub fn take_from<S: Source>(cons: &mut Constructed<S>) -> Result<Self, S::Err>[src]

Trait Implementations

impl From<u128> for Serial[src]

impl From<u64> for Serial[src]

impl From<Serial> for String[src]

impl Clone for Serial[src]

impl Copy for Serial[src]

impl Default for Serial[src]

impl Eq for Serial[src]

impl Ord for Serial[src]

impl PartialEq<Serial> for Serial[src]

impl PartialOrd<Serial> for Serial[src]

impl Display for Serial[src]

impl Debug for Serial[src]

impl FromStr for Serial[src]

type Err = RepresentationError

The associated error which can be returned from parsing.

impl Hash for Serial[src]

impl StructuralPartialEq for Serial[src]

impl StructuralEq for Serial[src]

impl PrimitiveContent for Serial[src]

impl Serialize for Serial[src]

impl<'de> Deserialize<'de> for Serial[src]

Auto Trait Implementations

impl Send for Serial

impl Sync for Serial

impl Unpin for Serial

impl UnwindSafe for Serial

impl RefUnwindSafe for Serial

Blanket Implementations

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

impl<T> From<T> for T[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToString for T where
    T: Display + ?Sized
[src]

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

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> 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<T> for T where
    T: ?Sized
[src]

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

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

impl<T> DeserializeOwned for T where
    T: Deserialize<'de>, 
[src]