pub struct KnowledgeRevisionV1 {
pub schema: String,
pub vault_id: String,
pub revision: u64,
pub document: Option<ResearchContextDocumentV1>,
pub updated_at: UtcTimestamp,
pub state: RevisionState,
pub quarantined_after: u64,
pub fact_states: Vec<FactStateV1>,
pub ctxpkg_tree: Option<String>,
pub ctxpkg_commit: Option<String>,
}Expand description
One revision of a vault’s knowledge; KnowledgeRevisionV1::validate
refuses a revision without its document.
Fields§
§schema: String§vault_id: String§revision: u64§document: Option<ResearchContextDocumentV1>§updated_at: UtcTimestamp§state: RevisionState1.9: released unless a reviewer reads a quarantined revision.
quarantined_after: u641.9: quarantined revisions after this delivered head.
fact_states: Vec<FactStateV1>1.9: facts whose state is not current (super::facts).
ctxpkg_tree: Option<String>1.9 (ctxpkg ids): the document tree and the revision commit
(hive::ctxpkg), computed by Hive over the stored document; clear
vaults only. An engine whose own ids differ treats the revision as
altered.
ctxpkg_commit: Option<String>Implementations§
Source§impl KnowledgeRevisionV1
impl KnowledgeRevisionV1
pub fn validate(&self) -> Result<(), ValidationError>
Trait Implementations§
Source§impl Clone for KnowledgeRevisionV1
impl Clone for KnowledgeRevisionV1
Source§impl Debug for KnowledgeRevisionV1
impl Debug for KnowledgeRevisionV1
Source§impl<'de> Deserialize<'de> for KnowledgeRevisionV1
impl<'de> Deserialize<'de> for KnowledgeRevisionV1
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 KnowledgeRevisionV1
Source§impl PartialEq for KnowledgeRevisionV1
impl PartialEq for KnowledgeRevisionV1
Source§impl Serialize for KnowledgeRevisionV1
impl Serialize for KnowledgeRevisionV1
impl StructuralPartialEq for KnowledgeRevisionV1
Auto Trait Implementations§
impl Forget for KnowledgeRevisionV1
impl Freeze for KnowledgeRevisionV1
impl Move for KnowledgeRevisionV1
impl RefUnwindSafe for KnowledgeRevisionV1
impl Send for KnowledgeRevisionV1
impl Sync for KnowledgeRevisionV1
impl Unpin for KnowledgeRevisionV1
impl UnsafeUnpin for KnowledgeRevisionV1
impl UnwindSafe for KnowledgeRevisionV1
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