pub enum CommandResult {
Show 13 variants
Void,
Bool(bool),
String(String),
Configs(Vec<StoreConfig>),
Events(Vec<Event>),
Status(Status),
SecretList(SecretList),
Identities(Vec<Identity>),
Secret(Secret),
SecretVersion(SecretVersion),
ClipboardProviding(ClipboardProviding),
SecretStoreError(SecretStoreError),
ServiceError(ServiceError),
}Variants§
Void
Bool(bool)
String(String)
Configs(Vec<StoreConfig>)
Events(Vec<Event>)
Status(Status)
SecretList(SecretList)
Identities(Vec<Identity>)
Secret(Secret)
SecretVersion(SecretVersion)
ClipboardProviding(ClipboardProviding)
SecretStoreError(SecretStoreError)
ServiceError(ServiceError)
Trait Implementations§
Source§impl Debug for CommandResult
impl Debug for CommandResult
Source§impl<'de> Deserialize<'de> for CommandResult
impl<'de> Deserialize<'de> for CommandResult
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl From<CommandResult> for SecretStoreResult<()>
impl From<CommandResult> for SecretStoreResult<()>
Source§fn from(result: CommandResult) -> Self
fn from(result: CommandResult) -> Self
Converts to this type from the input type.
Source§impl From<CommandResult> for ServiceResult<()>
impl From<CommandResult> for ServiceResult<()>
Source§fn from(result: CommandResult) -> Self
fn from(result: CommandResult) -> Self
Converts to this type from the input type.
Source§impl From<CommandResult> for ServiceResult<Option<ClipboardProviding>>
impl From<CommandResult> for ServiceResult<Option<ClipboardProviding>>
Source§fn from(result: CommandResult) -> Self
fn from(result: CommandResult) -> Self
Converts to this type from the input type.
Source§impl From<CommandResult> for ServiceResult<Option<String>>
impl From<CommandResult> for ServiceResult<Option<String>>
Source§fn from(result: CommandResult) -> Self
fn from(result: CommandResult) -> Self
Converts to this type from the input type.
Source§impl From<CommandResult> for SecretStoreResult<Secret>
impl From<CommandResult> for SecretStoreResult<Secret>
Source§fn from(result: CommandResult) -> Self
fn from(result: CommandResult) -> Self
Converts to this type from the input type.
Source§impl From<CommandResult> for SecretStoreResult<SecretList>
impl From<CommandResult> for SecretStoreResult<SecretList>
Source§fn from(result: CommandResult) -> Self
fn from(result: CommandResult) -> Self
Converts to this type from the input type.
Source§impl From<CommandResult> for SecretStoreResult<SecretVersion>
impl From<CommandResult> for SecretStoreResult<SecretVersion>
Source§fn from(result: CommandResult) -> Self
fn from(result: CommandResult) -> Self
Converts to this type from the input type.
Source§impl From<CommandResult> for SecretStoreResult<Status>
impl From<CommandResult> for SecretStoreResult<Status>
Source§fn from(result: CommandResult) -> Self
fn from(result: CommandResult) -> Self
Converts to this type from the input type.
Source§impl From<CommandResult> for SecretStoreResult<String>
impl From<CommandResult> for SecretStoreResult<String>
Source§fn from(result: CommandResult) -> Self
fn from(result: CommandResult) -> Self
Converts to this type from the input type.
Source§impl From<CommandResult> for ServiceResult<String>
impl From<CommandResult> for ServiceResult<String>
Source§fn from(result: CommandResult) -> Self
fn from(result: CommandResult) -> Self
Converts to this type from the input type.
Source§impl From<CommandResult> for ServiceResult<Vec<Event>>
impl From<CommandResult> for ServiceResult<Vec<Event>>
Source§fn from(result: CommandResult) -> Self
fn from(result: CommandResult) -> Self
Converts to this type from the input type.
Source§impl From<CommandResult> for SecretStoreResult<Vec<Identity>>
impl From<CommandResult> for SecretStoreResult<Vec<Identity>>
Source§fn from(result: CommandResult) -> Self
fn from(result: CommandResult) -> Self
Converts to this type from the input type.
Source§impl From<CommandResult> for ServiceResult<Vec<StoreConfig>>
impl From<CommandResult> for ServiceResult<Vec<StoreConfig>>
Source§fn from(result: CommandResult) -> Self
fn from(result: CommandResult) -> Self
Converts to this type from the input type.
Source§impl From<CommandResult> for ServiceResult<bool>
impl From<CommandResult> for ServiceResult<bool>
Source§fn from(result: CommandResult) -> Self
fn from(result: CommandResult) -> Self
Converts to this type from the input type.
Source§impl From<Result<(), SecretStoreError>> for CommandResult
impl From<Result<(), SecretStoreError>> for CommandResult
Source§fn from(result: SecretStoreResult<()>) -> Self
fn from(result: SecretStoreResult<()>) -> Self
Converts to this type from the input type.
Source§impl From<Result<(), ServiceError>> for CommandResult
impl From<Result<(), ServiceError>> for CommandResult
Source§fn from(result: ServiceResult<()>) -> Self
fn from(result: ServiceResult<()>) -> Self
Converts to this type from the input type.
Source§impl From<Result<Option<ClipboardProviding>, ServiceError>> for CommandResult
impl From<Result<Option<ClipboardProviding>, ServiceError>> for CommandResult
Source§fn from(result: ServiceResult<Option<ClipboardProviding>>) -> Self
fn from(result: ServiceResult<Option<ClipboardProviding>>) -> Self
Converts to this type from the input type.
Source§impl From<Result<Option<String>, ServiceError>> for CommandResult
impl From<Result<Option<String>, ServiceError>> for CommandResult
Source§impl From<Result<Secret, SecretStoreError>> for CommandResult
impl From<Result<Secret, SecretStoreError>> for CommandResult
Source§fn from(result: SecretStoreResult<Secret>) -> Self
fn from(result: SecretStoreResult<Secret>) -> Self
Converts to this type from the input type.
Source§impl From<Result<SecretList, SecretStoreError>> for CommandResult
impl From<Result<SecretList, SecretStoreError>> for CommandResult
Source§fn from(result: SecretStoreResult<SecretList>) -> Self
fn from(result: SecretStoreResult<SecretList>) -> Self
Converts to this type from the input type.
Source§impl From<Result<SecretVersion, SecretStoreError>> for CommandResult
impl From<Result<SecretVersion, SecretStoreError>> for CommandResult
Source§fn from(result: SecretStoreResult<SecretVersion>) -> Self
fn from(result: SecretStoreResult<SecretVersion>) -> Self
Converts to this type from the input type.
Source§impl From<Result<Status, SecretStoreError>> for CommandResult
impl From<Result<Status, SecretStoreError>> for CommandResult
Source§fn from(result: SecretStoreResult<Status>) -> Self
fn from(result: SecretStoreResult<Status>) -> Self
Converts to this type from the input type.
Source§impl From<Result<String, SecretStoreError>> for CommandResult
impl From<Result<String, SecretStoreError>> for CommandResult
Source§fn from(result: SecretStoreResult<String>) -> Self
fn from(result: SecretStoreResult<String>) -> Self
Converts to this type from the input type.
Source§impl From<Result<String, ServiceError>> for CommandResult
impl From<Result<String, ServiceError>> for CommandResult
Source§fn from(result: ServiceResult<String>) -> Self
fn from(result: ServiceResult<String>) -> Self
Converts to this type from the input type.
Source§impl From<Result<Vec<Event>, ServiceError>> for CommandResult
impl From<Result<Vec<Event>, ServiceError>> for CommandResult
Source§impl From<Result<Vec<Identity>, SecretStoreError>> for CommandResult
impl From<Result<Vec<Identity>, SecretStoreError>> for CommandResult
Source§impl From<Result<Vec<StoreConfig>, ServiceError>> for CommandResult
impl From<Result<Vec<StoreConfig>, ServiceError>> for CommandResult
Source§fn from(result: ServiceResult<Vec<StoreConfig>>) -> Self
fn from(result: ServiceResult<Vec<StoreConfig>>) -> Self
Converts to this type from the input type.
Source§impl From<Result<bool, ServiceError>> for CommandResult
impl From<Result<bool, ServiceError>> for CommandResult
Source§fn from(result: ServiceResult<bool>) -> Self
fn from(result: ServiceResult<bool>) -> Self
Converts to this type from the input type.
Source§impl Serialize for CommandResult
impl Serialize for CommandResult
Auto Trait Implementations§
impl Freeze for CommandResult
impl RefUnwindSafe for CommandResult
impl Send for CommandResult
impl Sync for CommandResult
impl Unpin for CommandResult
impl UnwindSafe for CommandResult
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> 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