pub enum LayoutPreset {
Default,
Radicle,
Gitoxide,
}Expand description
Storage layout presets for different ecosystems.
Variants§
Default
RIP-X layout (refs/rad/id, refs/keys)
Radicle
Alias for default — explicitly Radicle-compatible
Gitoxide
Gitoxide-compatible layout (refs/auths/id, refs/auths/devices)
Implementations§
Source§impl LayoutPreset
impl LayoutPreset
Sourcepub fn to_config(self) -> StorageLayoutConfig
pub fn to_config(self) -> StorageLayoutConfig
Convert the preset to a StorageLayoutConfig.
Trait Implementations§
Source§impl Clone for LayoutPreset
impl Clone for LayoutPreset
Source§fn clone(&self) -> LayoutPreset
fn clone(&self) -> LayoutPreset
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 LayoutPreset
impl Debug for LayoutPreset
Source§impl Default for LayoutPreset
impl Default for LayoutPreset
Source§fn default() -> LayoutPreset
fn default() -> LayoutPreset
Returns the “default value” for a type. Read more
Source§impl ValueEnum for LayoutPreset
impl ValueEnum for LayoutPreset
impl Copy for LayoutPreset
Auto Trait Implementations§
impl Freeze for LayoutPreset
impl RefUnwindSafe for LayoutPreset
impl Send for LayoutPreset
impl Sync for LayoutPreset
impl Unpin for LayoutPreset
impl UnsafeUnpin for LayoutPreset
impl UnwindSafe for LayoutPreset
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