pub struct PushResponse {
pub ok: bool,
pub project_key: String,
pub file_path: String,
pub deleted: bool,
pub merged: bool,
pub updated_at: String,
pub merge_job: Option<String>,
}Expand description
Body returned by POST /sync.
Fields§
§ok: boolAlways true; a failure is a non-2xx carrying an
ErrorResponse instead.
project_key: StringEchoed back from the request.
file_path: StringEchoed back from the request.
deleted: boolWhether the stored row is now a tombstone.
merged: boolWhether the stored content is the result of a semantic merge rather than a plain write.
updated_at: StringWhen the row was written, in the crate’s frozen timestamp format.
merge_job: Option<String>The merge job this push queued, on a server with a worker: the push
was stored as sent (merged: false), and the merged file arrives
with a later pull.
Omitted rather than null when no job was queued, so a server
without a worker answers byte for byte as it did before the queue
existed.
Trait Implementations§
Source§impl Clone for PushResponse
impl Clone for PushResponse
Source§impl Debug for PushResponse
impl Debug for PushResponse
Source§impl Default for PushResponse
impl Default for PushResponse
Source§impl<'de> Deserialize<'de> for PushResponse
impl<'de> Deserialize<'de> for PushResponse
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for PushResponse
impl PartialEq for PushResponse
Source§impl Serialize for PushResponse
impl Serialize for PushResponse
impl StructuralPartialEq for PushResponse
Auto Trait Implementations§
impl Freeze for PushResponse
impl RefUnwindSafe for PushResponse
impl Send for PushResponse
impl Sync for PushResponse
impl Unpin for PushResponse
impl UnsafeUnpin for PushResponse
impl UnwindSafe for PushResponse
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more