pub struct StorageLayoutConfig {
pub identity_ref: GitRef,
pub device_attestation_prefix: GitRef,
pub attestation_blob_name: BlobName,
pub identity_blob_name: BlobName,
}Expand description
Configuration defining the Git reference layout for primary identity and device attestation data.
This struct allows consumers of the auths-id library to define custom
Git repository layouts.
Fields§
§identity_ref: GitRefThe Git reference pointing to the commit containing the primary identity document.
Default: "refs/auths/identity"
device_attestation_prefix: GitRefThe base Git reference prefix for storing device attestations.
Default: "refs/auths/keys"
attestation_blob_name: BlobNameStandard filename for the blob containing attestation data.
Default: "attestation.json"
identity_blob_name: BlobNameStandard filename for the blob containing identity data.
Default: "identity.json"
Implementations§
Source§impl StorageLayoutConfig
impl StorageLayoutConfig
Sourcepub fn org_member_ref(&self, org_did: &str, member_did: &DeviceDID) -> String
pub fn org_member_ref(&self, org_did: &str, member_did: &DeviceDID) -> String
Constructs the full Git reference path for storing an organization member’s attestation.
Sourcepub fn org_members_prefix(&self, org_did: &str) -> String
pub fn org_members_prefix(&self, org_did: &str) -> String
Returns the base Git reference prefix for listing all members of an organization.
Sourcepub fn org_identity_ref(&self, org_did: &str) -> String
pub fn org_identity_ref(&self, org_did: &str) -> String
Returns the Git reference path for storing organization identity/metadata.
Trait Implementations§
Source§impl Clone for StorageLayoutConfig
impl Clone for StorageLayoutConfig
Source§fn clone(&self) -> StorageLayoutConfig
fn clone(&self) -> StorageLayoutConfig
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for StorageLayoutConfig
impl Debug for StorageLayoutConfig
Source§impl Default for StorageLayoutConfig
impl Default for StorageLayoutConfig
Source§impl<'de> Deserialize<'de> for StorageLayoutConfig
impl<'de> Deserialize<'de> for StorageLayoutConfig
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>,
Source§impl PartialEq for StorageLayoutConfig
impl PartialEq for StorageLayoutConfig
Source§impl Serialize for StorageLayoutConfig
impl Serialize for StorageLayoutConfig
impl Eq for StorageLayoutConfig
impl StructuralPartialEq for StorageLayoutConfig
Auto Trait Implementations§
impl Freeze for StorageLayoutConfig
impl RefUnwindSafe for StorageLayoutConfig
impl Send for StorageLayoutConfig
impl Sync for StorageLayoutConfig
impl Unpin for StorageLayoutConfig
impl UnsafeUnpin for StorageLayoutConfig
impl UnwindSafe for StorageLayoutConfig
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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
key and return true if they are equal.