Struct atuin_dotfiles::store::AliasStore
source · pub struct AliasStore {
pub store: SqliteStore,
pub host_id: HostId,
pub encryption_key: [u8; 32],
}
Fields§
§store: SqliteStore
§host_id: HostId
§encryption_key: [u8; 32]
Implementations§
source§impl AliasStore
impl AliasStore
pub fn new( store: SqliteStore, host_id: HostId, encryption_key: [u8; 32], ) -> AliasStore
pub async fn posix(&self) -> Result<String>
pub async fn xonsh(&self) -> Result<String>
pub async fn build(&self) -> Result<()>
pub async fn set(&self, name: &str, value: &str) -> Result<()>
pub async fn delete(&self, name: &str) -> Result<()>
pub async fn aliases(&self) -> Result<Vec<Alias>>
Trait Implementations§
source§impl Clone for AliasStore
impl Clone for AliasStore
source§fn clone(&self) -> AliasStore
fn clone(&self) -> AliasStore
Returns a copy 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 moreAuto Trait Implementations§
impl Freeze for AliasStore
impl !RefUnwindSafe for AliasStore
impl Send for AliasStore
impl Sync for AliasStore
impl Unpin for AliasStore
impl !UnwindSafe for AliasStore
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
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more