Struct diem_secure_storage::GitHubStorage
source · pub struct GitHubStorage { /* private fields */ }
Expand description
GitHubStorage leverages a GitHub repository to provide a file system approach to key / value storage. This is not intended for storing private data but for organizing public data.
Implementations§
Trait Implementations§
source§impl From<GitHubStorage> for Storage
impl From<GitHubStorage> for Storage
source§fn from(v: GitHubStorage) -> Storage
fn from(v: GitHubStorage) -> Storage
Converts to this type from the input type.
source§impl KVStorage for GitHubStorage
impl KVStorage for GitHubStorage
source§fn available(&self) -> Result<(), Error>
fn available(&self) -> Result<(), Error>
Returns an error if the backend service is not online and available.
source§fn get<T: DeserializeOwned>(&self, key: &str) -> Result<GetResponse<T>, Error>
fn get<T: DeserializeOwned>(&self, key: &str) -> Result<GetResponse<T>, Error>
Retrieves a value from storage and fails if the backend is unavailable or the process has
invalid permissions.