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]
T: Message + Serialize,
pub fn new(client_id: u32, sequence: u64, data: T) -> Self
[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
Auto Trait Implementations
impl<T> Send for UpsertRequest<T> where
T: Send,
T: Send,
impl<T> Sync for UpsertRequest<T> where
T: Sync,
T: Sync,