Enum t_rust_less_lib::api::CommandResult
source · 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 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
§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Convert
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Convert
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Convert
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.