Struct sct::Log

source ·
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§

source§

impl<'a> Debug for Log<'a>

source§

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

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§

source§

impl<T> Any for Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere T: ?Sized,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere T: ?Sized,

const: unstable · source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for Twhere U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T, U> TryFrom<U> for Twhere U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

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

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere U: TryFrom<T>,

§

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

The type returned in the event of a conversion error.
const: unstable · source§

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

Performs the conversion.