pub struct KnowledgePutRequestV1 {
pub schema: String,
pub expected_revision: u64,
pub document: Option<ResearchContextDocumentV1>,
pub sealed: Option<SealedBlobV1>,
pub merged_proposals: Vec<u64>,
pub rolls_back: Option<u64>,
}Expand description
PUT /v1/vaults/{vault_id}/knowledge: compare-and-set a whole revision.
Fields§
§schema: String§expected_revision: u64§document: Option<ResearchContextDocumentV1>§sealed: Option<SealedBlobV1>§merged_proposals: Vec<u64>1.6: proposals this revision merges (draft or open ones, ≤ 50, unique); Hive marks them merged at the new revision.
rolls_back: Option<u64>1.9: this revision restores the document of that earlier revision (a rollback); it merges no proposals.
Implementations§
Source§impl KnowledgePutRequestV1
impl KnowledgePutRequestV1
pub fn validate(&self) -> Result<(), ValidationError>
Trait Implementations§
Source§impl Clone for KnowledgePutRequestV1
impl Clone for KnowledgePutRequestV1
Source§impl Debug for KnowledgePutRequestV1
impl Debug for KnowledgePutRequestV1
Source§impl<'de> Deserialize<'de> for KnowledgePutRequestV1
impl<'de> Deserialize<'de> for KnowledgePutRequestV1
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
impl Eq for KnowledgePutRequestV1
Source§impl PartialEq for KnowledgePutRequestV1
impl PartialEq for KnowledgePutRequestV1
Source§impl Serialize for KnowledgePutRequestV1
impl Serialize for KnowledgePutRequestV1
impl StructuralPartialEq for KnowledgePutRequestV1
Auto Trait Implementations§
impl Freeze for KnowledgePutRequestV1
impl RefUnwindSafe for KnowledgePutRequestV1
impl Send for KnowledgePutRequestV1
impl Sync for KnowledgePutRequestV1
impl Unpin for KnowledgePutRequestV1
impl UnsafeUnpin for KnowledgePutRequestV1
impl UnwindSafe for KnowledgePutRequestV1
Blanket Implementations§
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