pub struct AudiencePackage { /* private fields */ }Expand description
Canonical bytes for one audience partition of a Store write.
Implementations§
Source§impl AudiencePackage
impl AudiencePackage
pub fn store( store_root_hash: ObjectHash, candidate_family: CandidateFamilyId, write_id: WriteId, commit_coord: StoreCommitCoord, schema_version: u32, changeset: Vec<u8>, blob_bindings: Vec<RowBlobLocatorBinding>, ) -> Result<Self, AudiencePackageError>
pub fn circle( store_root_hash: ObjectHash, candidate_family: CandidateFamilyId, write_id: WriteId, commit_coord: StoreCommitCoord, schema_version: u32, circle_id: CircleId, control: CircleControlCoord, key_fingerprint: KeyFingerprint, changeset: Vec<u8>, blob_bindings: Vec<RowBlobLocatorBinding>, ) -> Result<Self, AudiencePackageError>
pub fn parse(bytes: &[u8]) -> Result<Self, AudiencePackageError>
pub fn to_bytes(&self) -> Vec<u8> ⓘ
pub fn store_root_hash(&self) -> ObjectHash
pub fn write_id(&self) -> &WriteId
pub fn candidate_family(&self) -> CandidateFamilyId
pub fn commit_coord(&self) -> &StoreCommitCoord
pub fn schema_version(&self) -> u32
pub fn audience(&self) -> &PackageAudience
pub fn changeset(&self) -> &[u8] ⓘ
pub fn blob_bindings(&self) -> &[RowBlobLocatorBinding]
Sourcepub fn validate_blob_uploader(
&self,
author: &StoreDeviceRegistrationRef,
) -> Result<(), AudiencePackageError>
pub fn validate_blob_uploader( &self, author: &StoreDeviceRegistrationRef, ) -> Result<(), AudiencePackageError>
Require every exact blob locator in this package to name the registration that authored the enclosing Store commit.
Trait Implementations§
Source§impl Clone for AudiencePackage
impl Clone for AudiencePackage
Source§fn clone(&self) -> AudiencePackage
fn clone(&self) -> AudiencePackage
Returns a duplicate of the value. Read more
1.0.0 · 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 AudiencePackage
impl Debug for AudiencePackage
Source§impl<'de> Deserialize<'de> for AudiencePackage
impl<'de> Deserialize<'de> for AudiencePackage
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
Source§impl PartialEq for AudiencePackage
impl PartialEq for AudiencePackage
Source§impl Serialize for AudiencePackage
impl Serialize for AudiencePackage
impl Eq for AudiencePackage
impl StructuralPartialEq for AudiencePackage
Auto Trait Implementations§
impl Freeze for AudiencePackage
impl RefUnwindSafe for AudiencePackage
impl Send for AudiencePackage
impl Sync for AudiencePackage
impl Unpin for AudiencePackage
impl UnsafeUnpin for AudiencePackage
impl UnwindSafe for AudiencePackage
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.