pub struct RevisionDiffV1 {
pub schema: String,
pub vault_id: String,
pub from: u64,
pub to: u64,
pub ops: Vec<PatchOpV1>,
}Expand description
1.9: GET /v1/vaults/{vault_id}/knowledge/diff?from=&to=.
Fields§
§schema: String§vault_id: String§from: u64§to: u64§ops: Vec<PatchOpV1>Applied in order to revision from, they give revision to exactly
(its digest), credits included: unlike patches, these ops carry
from_contributions, the fact’s full list in to; applying
update_fact keeps earlier credits and appends the missing ones.
Implementations§
Source§impl RevisionDiffV1
impl RevisionDiffV1
pub fn validate(&self) -> Result<(), ValidationError>
Trait Implementations§
Source§impl Clone for RevisionDiffV1
impl Clone for RevisionDiffV1
Source§impl Debug for RevisionDiffV1
impl Debug for RevisionDiffV1
Source§impl<'de> Deserialize<'de> for RevisionDiffV1
impl<'de> Deserialize<'de> for RevisionDiffV1
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 RevisionDiffV1
Source§impl PartialEq for RevisionDiffV1
impl PartialEq for RevisionDiffV1
Source§impl Serialize for RevisionDiffV1
impl Serialize for RevisionDiffV1
impl StructuralPartialEq for RevisionDiffV1
Auto Trait Implementations§
impl Freeze for RevisionDiffV1
impl RefUnwindSafe for RevisionDiffV1
impl Send for RevisionDiffV1
impl Sync for RevisionDiffV1
impl Unpin for RevisionDiffV1
impl UnsafeUnpin for RevisionDiffV1
impl UnwindSafe for RevisionDiffV1
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