[][src]Struct sequoia_store::Log

pub struct Log {
    pub timestamp: SystemTime,
    pub mapping: Option<Mapping>,
    pub binding: Option<Binding>,
    pub key: Option<Key>,
    pub slug: String,
    pub status: Result<String, (String, String)>,
}

Represents a log entry.

Fields

timestamp: SystemTime

Records the time of the entry.

mapping: Option<Mapping>

Relates the entry to a mapping.

binding: Option<Binding>

Relates the entry to a binding.

key: Option<Key>

Relates the entry to a key.

slug: String

Relates the entry to some object.

This is a human-readable description of what this log entry is mainly concerned with.

status: Result<String, (String, String)>

Holds the result of the operation.

This is either Ok(Message), or Err((Message, Error)).

Implementations

impl Log[src]

pub fn short(&self) -> String[src]

Returns the message without context.

pub fn string(&self) -> String[src]

Returns the message with some context.

Trait Implementations

impl Debug for Log[src]

Auto Trait Implementations

impl !RefUnwindSafe for Log

impl !Send for Log

impl !Sync for Log

impl Unpin for Log

impl !UnwindSafe for Log

Blanket Implementations

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

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

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

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

impl<T> Instrument for T[src]

impl<T> Instrument for T[src]

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

impl<T> Same<T> for T

type Output = T

Should always be Self

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<V, T> VZip<V> for T where
    V: MultiLane<T>, 

impl<T> WithSubscriber for T[src]