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 radicle() -> StorageLayoutConfig
pub fn radicle() -> StorageLayoutConfig
Radicle-compatible layout preset (uses refs/rad/ namespace).
Sourcepub fn gitoxide() -> StorageLayoutConfig
pub fn gitoxide() -> StorageLayoutConfig
Gitoxide-compatible layout preset (uses refs/auths/ namespace).
Sourcepub fn org_member_ref(&self, org_did: &str, member_did: &CanonicalDid) -> String
pub fn org_member_ref(&self, org_did: &str, member_did: &CanonicalDid) -> 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 (const: unstable) · 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§fn default() -> StorageLayoutConfig
fn default() -> StorageLayoutConfig
Source§impl<'de> Deserialize<'de> for StorageLayoutConfig
impl<'de> Deserialize<'de> for StorageLayoutConfig
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<StorageLayoutConfig, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<StorageLayoutConfig, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
impl Eq for StorageLayoutConfig
Source§impl PartialEq for StorageLayoutConfig
impl PartialEq for StorageLayoutConfig
Source§fn eq(&self, other: &StorageLayoutConfig) -> bool
fn eq(&self, other: &StorageLayoutConfig) -> bool
self and other values to be equal, and is used by ==.Source§impl Serialize for StorageLayoutConfig
impl Serialize for StorageLayoutConfig
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
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,
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
key and return true if they are equal.