pub struct Bitwarden { /* private fields */ }Expand description
Reads fields of a Bitwarden vault’s items through the bw command line.
Implementations§
Source§impl Bitwarden
impl Bitwarden
Sourcepub fn new(config: BitwardenConfig) -> Result<Self, String>
pub fn new(config: BitwardenConfig) -> Result<Self, String>
Sourcepub fn with_runner(
config: BitwardenConfig,
runner: Arc<dyn Runner>,
) -> Result<Self, String>
pub fn with_runner( config: BitwardenConfig, runner: Arc<dyn Runner>, ) -> Result<Self, String>
A provider that runs bw through runner, for a test or a host with its own way.
§Errors
A message for a setting that cannot work.
Trait Implementations§
Source§impl ProviderDecl for Bitwarden
impl ProviderDecl for Bitwarden
Source§impl SecretProvider for Bitwarden
impl SecretProvider for Bitwarden
Source§fn read(&self, ask: &Value) -> Result<Value, ProviderError>
fn read(&self, ask: &Value) -> Result<Value, ProviderError>
Reads
ask (a SecretAsk as a value) and answers a SecretRead. An error’s text
never holds a value: AI6 withholds it from people anyway.Source§fn fields(&self) -> Result<Value, ProviderError>
fn fields(&self) -> Result<Value, ProviderError>
The JSON Schema, as a value, of the fields one secret names besides
key. A field may
not take a name in RESERVED_FIELDS. The default declares none.Source§fn lease(&self, ask: &Value) -> Result<Value, ProviderError>
fn lease(&self, ask: &Value) -> Result<Value, ProviderError>
Leases
ask (a SecretLeaseAsk as a value) and answers a SecretLeased. A
provider that does not lease leaves the default, and is read instead.Source§fn revoke(&self, lease: &str) -> Result<(), ProviderError>
fn revoke(&self, lease: &str) -> Result<(), ProviderError>
Revokes the lease
lease; one already gone is not an error.Auto Trait Implementations§
impl !Freeze for Bitwarden
impl !RefUnwindSafe for Bitwarden
impl !UnwindSafe for Bitwarden
impl Send for Bitwarden
impl Sync for Bitwarden
impl Unpin for Bitwarden
impl UnsafeUnpin for Bitwarden
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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
impl<A, B, T> HttpServerConnExec<A, B> for Twhere
B: Body,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
§impl<T> IntoMaybeUndefined<T> for T
impl<T> IntoMaybeUndefined<T> for T
§fn into_maybe_undefined(self) -> MaybeUndefined<T>
fn into_maybe_undefined(self) -> MaybeUndefined<T>
Converts this value into a three-state builder argument.
§impl<T> IntoOption<T> for T
impl<T> IntoOption<T> for T
§fn into_option(self) -> Option<T>
fn into_option(self) -> Option<T>
Converts this value into an optional builder argument.