pub struct FormatHome {
pub format: ArtifactFormat,
pub config_key: &'static str,
pub aliases: &'static [&'static str],
pub crate_dir: &'static str,
pub package: &'static str,
pub also: Option<(&'static str, &'static str)>,
}Expand description
Where one ArtifactFormat’s backend lives, plus every other name the same
capability is called by. See ArtifactFormat::home for why this is needed.
Fields§
§format: ArtifactFormatThe format itself.
config_key: &'static strThe canonical ron_repo_type string an operator writes in a config.
aliases: &'static [&'static str]The OTHER names this capability is known by — docs, UI labels, ecosystem spellings. Searching any of them should lead here.
crate_dir: &'static strDirectory under server/repository/, or "" when the backend is not a
separate repository crate.
package: &'static strThe cargo package name of that crate.
also: Option<(&'static str, &'static str)>A second (crate_dir, package) backend for the same format, when one
exists (e.g. the file-backed peer of a znippy-backed repo).
Implementations§
Trait Implementations§
Source§impl Clone for FormatHome
impl Clone for FormatHome
Source§impl Debug for FormatHome
impl Debug for FormatHome
impl Eq for FormatHome
Source§impl PartialEq for FormatHome
impl PartialEq for FormatHome
impl StructuralPartialEq for FormatHome
Auto Trait Implementations§
impl Forget for FormatHome
impl Freeze for FormatHome
impl RefUnwindSafe for FormatHome
impl Send for FormatHome
impl Sync for FormatHome
impl Unpin for FormatHome
impl UnsafeUnpin for FormatHome
impl UnwindSafe for FormatHome
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,
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.