Struct noosphere_api::data::PushBody
source · pub struct PushBody {
pub sphere: String,
pub base: Option<Cid>,
pub tip: Cid,
pub blocks: Bundle,
}Expand description
The body payload expected by the “push” API route
Fields
sphere: StringThe DID of the local sphere whose revisions are being pushed
base: Option<Cid>The base revision represented by the payload being pushed; if the entire history is being pushed, then this should be None
tip: CidThe tip of the history represented by the payload being pushed
blocks: BundleA bundle of all the blocks needed to hydrate the revisions from the base to the tip of history as represented by this payload
Trait Implementations
sourceimpl<'de> Deserialize<'de> for PushBody
impl<'de> Deserialize<'de> for PushBody
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
Auto Trait Implementations
impl RefUnwindSafe for PushBody
impl Send for PushBody
impl Sync for PushBody
impl Unpin for PushBody
impl UnwindSafe for PushBody
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