Struct stry_common::models::Existing[][src]

pub struct Existing<T> {
    pub id: Id,
    pub created: DateTime<Utc>,
    pub updated: DateTime<Utc>,
    // some fields omitted
}

A wrapper type to indicate that a type has a backend id.

Fields

id: Id

The entity’s Id.

Note

Each entity is tracked with this Id and is unique so no two entity should ever have the same Id.

Due to this is also shouldn’t be possible to allow the changing of the Id in anyway.

created: DateTime<Utc>

The time this entity was made.

Note

Once created this should never change.

updated: DateTime<Utc>

The last time this entity was updated.

Trait Implementations

impl<T: Clone> Clone for Existing<T>[src]

impl<T: Debug> Debug for Existing<T>[src]

impl<T> Deref for Existing<T>[src]

type Target = T

The resulting type after dereferencing.

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

impl<T: Eq> Eq for Existing<T>[src]

impl<T: Hash> Hash for Existing<T>[src]

impl<T: Ord> Ord for Existing<T>[src]

impl<T: PartialEq> PartialEq<Existing<T>> for Existing<T>[src]

impl<T: PartialOrd> PartialOrd<Existing<T>> for Existing<T>[src]

impl<T> Serialize for Existing<T> where
    T: Serialize
[src]

impl<T> StructuralEq for Existing<T>[src]

impl<T> StructuralPartialEq for Existing<T>[src]

Auto Trait Implementations

impl<T> RefUnwindSafe for Existing<T> where
    T: RefUnwindSafe

impl<T> Send for Existing<T> where
    T: Send

impl<T> Sync for Existing<T> where
    T: Sync

impl<T> Unpin for Existing<T> where
    T: Unpin

impl<T> UnwindSafe for Existing<T> where
    T: UnwindSafe

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