Skip to main content

VaultOperations

Trait VaultOperations 

Source
pub trait VaultOperations {
    // Required method
    fn list_items(&self) -> Result<Vec<Item>>;
}

Required Methods§

Source

fn list_items(&self) -> Result<Vec<Item>>

Retrieves a list of items managed by the current instance.

§Returns
  • Ok(Vec<Item>) - If the operation is successful, returns a vector of Item objects.
  • Err - Returns an error if the operation fails.
§Errors

This function will return an error if there is an issue while fetching or processing the items.

Note: Ensure to handle the Result properly to avoid runtime errors.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl VaultOperations for Vault

Implementors§