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§
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