Enum noosphere_api::data::PushResponse
source · Expand description
The possible responses from the “push” API route
Variants
Accepted
Fields
new_tip: CidThis is the new tip of the “counterpart” sphere after accepting the latest history from the local sphere. This is guaranteed to be at least one revision ahead of the latest revision being tracked by the client (because it points to the newly received tip of the local sphere’s history)
blocks: BundleThe blocks needed to hydrate the revisions of the “counterpart” sphere history to the tip represented in this response
The new history was accepted
NoChange
The history was already known by the API host, so no changes were made
Trait Implementations
sourceimpl Debug for PushResponse
impl Debug for PushResponse
sourceimpl<'de> Deserialize<'de> for PushResponse
impl<'de> Deserialize<'de> for PushResponse
sourcefn 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
sourceimpl PartialEq<PushResponse> for PushResponse
impl PartialEq<PushResponse> for PushResponse
sourcefn eq(&self, other: &PushResponse) -> bool
fn eq(&self, other: &PushResponse) -> bool
sourceimpl Serialize for PushResponse
impl Serialize for PushResponse
impl Eq for PushResponse
impl StructuralEq for PushResponse
impl StructuralPartialEq for PushResponse
Auto Trait Implementations
impl RefUnwindSafe for PushResponse
impl Send for PushResponse
impl Sync for PushResponse
impl Unpin for PushResponse
impl UnwindSafe for PushResponse
Blanket Implementations
sourceimpl<T> Base64Encode for Twhere
T: DagJson,
impl<T> Base64Encode for Twhere
T: DagJson,
fn jwt_base64_encode(&self) -> Result<String, Error>
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> DagJson for Twhere
T: Serialize + DeserializeOwned,
impl<T> DagJson for Twhere
T: Serialize + DeserializeOwned,
sourceimpl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
sourcefn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.