[][src]Struct approveapi::Prompt

pub struct Prompt {
    pub answer: Option<PromptAnswer>,
    pub sent_at: f32,
    pub id: String,
    pub expires_at: Option<f32>,
    pub metadata: Option<PromptMetadata>,
}

Fields

answer: Option<PromptAnswer>sent_at: f32

The unix timestamp when this prompt was sent.

id: String

A unique id for this prompt.

expires_at: Option<f32>

The unix timestamp when this prompt can no longer be answered.

metadata: Option<PromptMetadata>

Methods

impl Prompt[src]

pub fn new(sent_at: f32, id: String) -> Prompt[src]

Trait Implementations

impl Debug for Prompt[src]

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

impl Serialize for Prompt[src]

Auto Trait Implementations

impl Send for Prompt

impl Sync for Prompt

Blanket Implementations

impl<T> From for T[src]

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

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

type Error = !

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

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

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

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

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

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

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

impl<T> Erased for T

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