pub(crate) struct OnePasswordKeychain {
pub(crate) account: Option<String>,
pub(crate) vault: Option<String>,
}
Expand description
Implementation of 1password keychain access for Cargo registries.
Fields§
§account: Option<String>
§vault: Option<String>
Implementations§
source§impl OnePasswordKeychain
impl OnePasswordKeychain
pub(crate) fn new() -> Result<OnePasswordKeychain, Error>
pub(crate) fn signin(&self) -> Result<Option<String>, Error>
pub(crate) fn make_cmd( &self, session: &Option<String>, args: &[&str] ) -> Command
pub(crate) fn with_tty(&self, cmd: &mut Command) -> Result<(), Error>
pub(crate) fn run_cmd(&self, cmd: Command) -> Result<String, Error>
pub(crate) fn search( &self, session: &Option<String>, index_url: &str ) -> Result<Option<String>, Error>
pub(crate) fn modify( &self, session: &Option<String>, id: &str, token: &str, _name: Option<&str> ) -> Result<(), Error>
pub(crate) fn create( &self, session: &Option<String>, index_url: &str, token: &str, name: Option<&str> ) -> Result<(), Error>
pub(crate) fn get_token( &self, session: &Option<String>, id: &str ) -> Result<String, Error>
pub(crate) fn delete( &self, session: &Option<String>, id: &str ) -> Result<(), Error>
Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for OnePasswordKeychain
impl Send for OnePasswordKeychain
impl Sync for OnePasswordKeychain
impl Unpin for OnePasswordKeychain
impl UnwindSafe for OnePasswordKeychain
Blanket Implementations§
Layout§
Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...)
attributes. Please see the Rust Reference’s “Type Layout” chapter for details on type layout guarantees.
Size: 48 bytes