pub struct PushBody {
pub sphere: Did,
pub local_base: Option<Link<MemoIpld>>,
pub local_tip: Link<MemoIpld>,
pub counterpart_tip: Option<Link<MemoIpld>>,
pub blocks: Bundle,
pub name_record: Option<Jwt>,
}Expand description
The body payload expected by the “push” API route
Fields§
§sphere: DidThe DID of the local sphere whose revisions are being pushed
local_base: Option<Link<MemoIpld>>The base revision represented by the payload being pushed; if the entire history is being pushed, then this should be None
local_tip: Link<MemoIpld>The tip of the history represented by the payload being pushed
counterpart_tip: Option<Link<MemoIpld>>The last received tip of the counterpart sphere
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
name_record: Option<Jwt>An optional name record to publish to the Noosphere Name System
Trait Implementations§
Source§impl<'de> Deserialize<'de> for PushBody
impl<'de> Deserialize<'de> for PushBody
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
Auto Trait Implementations§
impl Freeze for PushBody
impl RefUnwindSafe for PushBody
impl Send for PushBody
impl Sync for PushBody
impl Unpin for PushBody
impl UnwindSafe for PushBody
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