pub struct RepositoryOriginV1 {
pub schema: String,
pub origin_id: String,
pub frontier_id: String,
pub generation: u64,
pub profile_root: String,
pub initial_object_set_root: String,
pub kind: RepositoryOriginKind,
pub predecessor: Option<RepositoryOriginPredecessorV1>,
pub reason: String,
}Fields§
§schema: String§origin_id: String§frontier_id: String§generation: u64§profile_root: String§initial_object_set_root: String§kind: RepositoryOriginKind§predecessor: Option<RepositoryOriginPredecessorV1>§reason: StringImplementations§
Source§impl RepositoryOriginV1
impl RepositoryOriginV1
pub fn genesis( frontier_id: String, profile_root: String, reason: String, ) -> Result<Self, String>
pub fn compaction( frontier_id: String, generation: u64, profile_root: String, initial_object_set_root: String, predecessor: RepositoryOriginPredecessorV1, reason: String, ) -> Result<Self, String>
pub fn parse(bytes: &[u8]) -> Result<Self, String>
pub fn verify(&self) -> Result<(), String>
pub fn canonical_bytes(&self) -> Result<Vec<u8>, String>
pub fn canonical_root(&self) -> Result<String, String>
Trait Implementations§
Source§impl Clone for RepositoryOriginV1
impl Clone for RepositoryOriginV1
Source§impl Debug for RepositoryOriginV1
impl Debug for RepositoryOriginV1
Source§impl<'de> Deserialize<'de> for RepositoryOriginV1
impl<'de> Deserialize<'de> for RepositoryOriginV1
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 RepositoryOriginV1
Source§impl PartialEq for RepositoryOriginV1
impl PartialEq for RepositoryOriginV1
Source§impl Serialize for RepositoryOriginV1
impl Serialize for RepositoryOriginV1
impl StructuralPartialEq for RepositoryOriginV1
Auto Trait Implementations§
impl Forget for RepositoryOriginV1
impl Freeze for RepositoryOriginV1
impl Move for RepositoryOriginV1
impl RefUnwindSafe for RepositoryOriginV1
impl Send for RepositoryOriginV1where
RawVecInner: Send,
impl Sync for RepositoryOriginV1where
RawVecInner: Sync,
impl Unpin for RepositoryOriginV1
impl UnsafeUnpin for RepositoryOriginV1
impl UnwindSafe for RepositoryOriginV1where
RawVecInner: UnwindSafe,
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.