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§fn clone(&self) -> RepositoryOriginV1
fn clone(&self) -> RepositoryOriginV1
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§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 Freeze for RepositoryOriginV1
impl RefUnwindSafe for RepositoryOriginV1
impl Send for RepositoryOriginV1
impl Sync for RepositoryOriginV1
impl Unpin for RepositoryOriginV1
impl UnsafeUnpin for RepositoryOriginV1
impl UnwindSafe for RepositoryOriginV1
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.