[][src]Struct krecik::products::story::Story

pub struct Story {
    pub timestamp: String,
    pub count: u64,
    pub success: Option<Expected>,
    pub minor: Option<UnexpectedMinor>,
    pub error: Option<Unexpected>,
}

Story holds errornous state

Fields

timestamp: String

Story - timestamp

count: u64

Story - failure count

success: Option<Expected>

Story - success

minor: Option<UnexpectedMinor>

Story - minor failure

error: Option<Unexpected>

Story - keep history of unexpected results (failures)

Implementations

impl Story[src]

pub fn success(success: Expected) -> Story[src]

New success-story

pub fn error(error: Unexpected) -> Story[src]

New error-story

pub fn minor(minor: UnexpectedMinor) -> Story[src]

New minor-failure-story (not notified)

Trait Implementations

impl Clone for Story[src]

impl Debug for Story[src]

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

impl PartialEq<Story> for Story[src]

impl Serialize for Story[src]

impl StructuralPartialEq for Story[src]

impl ToString for Story[src]

Implement JSON serialization on .to_string():

Auto Trait Implementations

impl RefUnwindSafe for Story

impl Send for Story

impl Sync for Story

impl Unpin for Story

impl UnwindSafe for Story

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> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

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

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

impl<T> Pointable for T

type Init = T

The type for initializers.

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

type Owned = T

The resulting type after obtaining ownership.

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

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

The type returned in the event of a conversion error.

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

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

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,