[][src]Struct approveapi::Prompt

pub struct Prompt {
    pub id: String,
    pub sent_at: f32,
    pub is_expired: bool,
    pub request: CreatePromptRequest,
    pub answer: Option<PromptAnswer>,
    pub metadata: Option<PromptMetadata>,
}

Fields

id: String

A unique id for this prompt.

sent_at: f32

The unix timestamp when this prompt was sent.

is_expired: bool

Whether the prompt can still be answered.

request: CreatePromptRequestanswer: Option<PromptAnswer>metadata: Option<PromptMetadata>

Methods

impl Prompt[src]

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

Trait Implementations

impl Serialize for Prompt[src]

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

impl Debug for Prompt[src]

Auto Trait Implementations

impl Send for Prompt

impl Sync for Prompt

Blanket Implementations

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

impl<T> From for T[src]

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

type Error = Infallible

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

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]