Struct sct::Log[][src]

pub struct Log<'a> {
    pub description: &'a str,
    pub url: &'a str,
    pub operated_by: &'a str,
    pub key: &'a [u8],
    pub id: [u8; 32],
    pub max_merge_delay: usize,
}
Expand description

Describes a CT log

This structure contains some metadata fields not used by the library. Rationale: it makes sense to keep this metadata with the other values for review purposes.

Fields

description: &'a str

The operator’s name/description of the log. This field is not used by the library.

url: &'a str

The certificate submission url. This field is not used by the library.

operated_by: &'a str

Which entity operates the log. This field is not used by the library.

key: &'a [u8]

Public key usable for verifying certificates. TODO: fixme format of this; should be a SPKI so the id is verifiable, but currently is a raw public key (like, an ECPoint or RSAPublicKey).

id: [u8; 32]

Key hash, which is SHA256 applied to the SPKI encoding.

max_merge_delay: usize

The log’s maximum merge delay. This field is not used by the library.

Trait Implementations

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

fn fmt(&self, f: &mut Formatter<'_>) -> Result[src]

Formats the value using the given formatter. Read more

Auto Trait Implementations

impl<'a> RefUnwindSafe for Log<'a>

impl<'a> Send for Log<'a>

impl<'a> Sync for Log<'a>

impl<'a> Unpin for Log<'a>

impl<'a> UnwindSafe for Log<'a>

Blanket Implementations

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

pub fn type_id(&self) -> TypeId[src]

Gets the TypeId of self. Read more

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

pub fn borrow(&self) -> &T[src]

Immutably borrows from an owned value. Read more

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

pub fn borrow_mut(&mut self) -> &mut T[src]

Mutably borrows from an owned value. Read more

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

pub fn from(t: T) -> T[src]

Performs the conversion.

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

pub fn into(self) -> U[src]

Performs the conversion.

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.

pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]

Performs the conversion.

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.

pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>[src]

Performs the conversion.