pub trait VaultOperations {
// Required method
fn list_items(&self) -> Result<Vec<Item>>;
}Required Methods§
Sourcefn list_items(&self) -> Result<Vec<Item>>
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 ofItemobjects.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.