pub enum PushResponse {
Accepted {
new_tip: Link<MemoIpld>,
blocks: Bundle,
},
NoChange,
}Expand description
The possible responses from the “push” API route
Variants§
Accepted
The new history was accepted
Fields
§
new_tip: Link<MemoIpld>This 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)
NoChange
The history was already known by the API host, so no changes were made
Trait Implementations§
Source§impl Debug for PushResponse
impl Debug 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 Eq 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 UnwindSafe for PushResponse
Blanket Implementations§
Source§impl<T> Base64Encode for Twhere
T: DagJson,
impl<T> Base64Encode for Twhere
T: DagJson,
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
Source§impl<T> DagJson for Twhere
T: Serialize + DeserializeOwned,
impl<T> DagJson for Twhere
T: Serialize + DeserializeOwned,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.