pub struct RepositoryInfo {
pub name: String,
pub repo_type: String,
pub writable: bool,
pub has_archive: bool,
pub supports_listing: bool,
pub is_group: bool,
pub members: Vec<String>,
}Expand description
Summary of one configured repository (mirror of the proto RepositoryInfo).
Fields§
§name: String§repo_type: String§writable: bool§has_archive: bool§supports_listing: boolMirror of RepositoryInfo.supports_listing: Caps::listing.
is_group: boolMirror of RepositoryInfo.is_group: a read-only view whose archive
figures are the SUM of members — skip it when summing a fleet.
members: Vec<String>Mirror of RepositoryInfo.members: the group’s member names, in order;
empty for a repository that owns its storage.
Implementations§
Source§impl RepositoryInfo
impl RepositoryInfo
Sourcepub fn of(name: &str, repo: &dyn RepositoryBackendTrait) -> RepositoryInfo
pub fn of(name: &str, repo: &dyn RepositoryBackendTrait) -> RepositoryInfo
The ONE mapping from a backend to its catalog row: every field is read
off the backend’s own Caps, so the catalog cannot drift from it.
Trait Implementations§
Source§impl Clone for RepositoryInfo
impl Clone for RepositoryInfo
Source§impl Debug for RepositoryInfo
impl Debug for RepositoryInfo
Source§impl<'de> Deserialize<'de> for RepositoryInfo
impl<'de> Deserialize<'de> for RepositoryInfo
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 RepositoryInfo
Source§impl PartialEq for RepositoryInfo
impl PartialEq for RepositoryInfo
Source§impl Serialize for RepositoryInfo
impl Serialize for RepositoryInfo
impl StructuralPartialEq for RepositoryInfo
Auto Trait Implementations§
impl Forget for RepositoryInfo
impl Freeze for RepositoryInfo
impl RefUnwindSafe for RepositoryInfo
impl Send for RepositoryInfo
impl Sync for RepositoryInfo
impl Unpin for RepositoryInfo
impl UnsafeUnpin for RepositoryInfo
impl UnwindSafe for RepositoryInfo
Blanket Implementations§
impl<T> Allocation for T
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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.