Struct splits_io_api::Entry

source ·
pub struct Entry {
    pub created_at: Box<str>,
    pub creator: Runner,
    pub finished_at: Option<Box<str>>,
    pub forfeited_at: Option<Box<str>>,
    pub ghost: bool,
    pub id: Uuid,
    pub readied_at: Option<Box<str>>,
    pub run: Option<Run>,
    pub runner: Runner,
    pub updated_at: Box<str>,
}
Expand description

An Entry represents a Runner’s participation in a Race or a ghost of a past Run.

API Documentation

Fields§

§created_at: Box<str>

The time and date at which this Entry was created on splits.io. This field conforms to ISO 8601.

§creator: Runner

The user that created this Entry; can be different from runner if the Entry is a ghost.

§finished_at: Option<Box<str>>

The time and date at which the runner finished this Race, if at all. This field conforms to ISO 8601.

§forfeited_at: Option<Box<str>>

The time and date at which the runner forfeited from this Race, if at all. This field conforms to ISO 8601.

§ghost: bool

Whether the Entry represents a past recording of a run (true) or a real user that has entered into the race explicitly (false).

§id: Uuid

The unchanging unique ID of this Entry.

§readied_at: Option<Box<str>>

The time and date at which the runner readied up in the Race, if at all. This field conforms to ISO 8601.

§run: Option<Run>

The Run linked to the current Entry. It has more detailed info about this runner’s run, such as splits and history.

§runner: Runner

The user participating in the race. If the entry is a ghost, this can differ from the creator.

§updated_at: Box<str>

The time and date at which this Entry was most recently modified on splits.io. This field conforms to ISO 8601.

Trait Implementations§

source§

impl Debug for Entry

source§

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

Formats the value using the given formatter. Read more
source§

impl<'de> Deserialize<'de> for Entry

source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more

Auto Trait Implementations§

§

impl RefUnwindSafe for Entry

§

impl Send for Entry

§

impl Sync for Entry

§

impl Unpin for Entry

§

impl UnwindSafe for Entry

Blanket Implementations§

source§

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

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

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

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

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

source§

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

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

§

impl<T> Instrument for T

§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided [Span], returning an Instrumented wrapper. Read more
§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
source§

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

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 T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

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

Performs the conversion.
source§

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

§

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

The type returned in the event of a conversion error.
source§

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

Performs the conversion.
§

impl<T> WithSubscriber for T

§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a [WithDispatch] wrapper. Read more
§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a [WithDispatch] wrapper. Read more
source§

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