Struct stitch::UpsertRequest [] [src]

pub struct UpsertRequest<T> where
    T: Message + Serialize
{ /* fields omitted */ }

Struct that is Serializable and Sendable to stitch. Ultimately, this type is converted to a RawUpsertRequest before sending to stitch, this is done in order to make use of serde automatic derive Serialize.

Methods

impl<T> UpsertRequest<T> where
    T: Message + Serialize
[src]

[src]

Creates new UpsertRequest.

  • sequence - Unique id. This field is used by stitch in order to know how to order messages correctly. This should be a monotonically increasing number, current time in milliseconds is often used.

Trait Implementations

impl<T: Debug> Debug for UpsertRequest<T> where
    T: Message + Serialize
[src]

[src]

Formats the value using the given formatter. Read more

Auto Trait Implementations

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

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