unstable
only.Expand description
Barebone DBus API of the Secret Service specifications.
+unstable
only.Expand description
Barebone DBus API of the Secret Service specifications.
The API is not supposed to be used by the applications in general unless the wrapper API doesn’t provide functionality you need.
Structs§
Traits§
- A common trait implemented by objects that can be diff --git a/oo7/portal/index.html b/oo7/portal/index.html index 85bfa129c..77d13d827 100644 --- a/oo7/portal/index.html +++ b/oo7/portal/index.html @@ -1,5 +1,5 @@
oo7::portal - Rust - \ No newline at end of file diff --git a/oo7/portal/struct.Keyring.html b/oo7/portal/struct.Keyring.html index a40d3116e..9dcd7f7ae 100644 --- a/oo7/portal/struct.Keyring.html +++ b/oo7/portal/struct.Keyring.html @@ -1,28 +1,28 @@Expand description
File backend implementation backed by the Secret portal.
+ \ No newline at end of file +XDG secret portal.Expand description
File backend implementation backed by the Secret portal.
use std::collections::HashMap; @@ -25,4 +25,4 @@ .await?;
Modules§
- api
unstable
GNOME Keyring file format low level API.
Structs§
- All information that is available about an invalid (not decryptable)
Item
- An item stored in the file backend.
- File backed keyring.
- Secret retrieved from the -XDG secret portal.
Enums§
- File backend specific errors.
- Details about why an encryption key is consider too weak for writing
SecretProxyunstable
Enums§
- File backend specific errors.
- Details about why an encryption key is consider too weak for writing
Keyring in oo7::portal - Rust -pub struct Keyring { /* private fields */ }
Expand description
File backed keyring.
-Implementations§
source§ impl Keyring
source pub async fn load_default() -> Result<Self, Error>
Load from default keyring file
-source pub async fn load(path: impl AsRef<Path>, secret: Secret) -> Result<Self, Error>
Load from a keyring file.
+pub struct Keyring { /* private fields */ }
Expand description
File backed keyring.
+Implementations§
source§ impl Keyring
source pub async fn load_default() -> Result<Self, Error>
Load from default keyring file
+source pub async fn load(path: impl AsRef<Path>, secret: Secret) -> Result<Self, Error>
Load from a keyring file.
§Arguments
path
- The path to the file backend.secret
- The service key, usually retrieved from the Secrets portal.
source pub async fn n_items(&self) -> usize
Retrieve the number of items
This function will not trigger a key derivation and can therefore be faster than
-items().len()
.source pub async fn items(&self) -> Vec<Result<Item, InvalidItemError>>
Retrieve the list of available
+Item
s.source pub async fn items(&self) -> Vec<Result<Item, InvalidItemError>>
Retrieve the list of available
Item
s.If items cannot be decrypted,
-InvalidItemError
s are returned for them instead ofItem
s.source pub async fn search_items( +
source pub async fn search_items( &self, attributes: &impl AsAttributes ) -> Result<Vec<Item>, Error>
Search items matching the attributes.
-source pub async fn lookup_item( +
source pub async fn lookup_item( &self, attributes: &impl AsAttributes ) -> Result<Option<Item>, Error>
Find the first item matching the attributes.
-source pub async fn delete(&self, attributes: &impl AsAttributes) -> Result<(), Error>
Delete an item.
-source pub async fn create_item( +
source pub async fn delete(&self, attributes: &impl AsAttributes) -> Result<(), Error>
Delete an item.
+source pub async fn create_item( &self, label: &str, attributes: &impl AsAttributes, @@ -38,7 +38,7 @@
§Arguments
-replace
- Whether to replace the value if theattributes
matches an existingsecret
.source pub async fn replace_item_index( +
source pub async fn delete_item_index(&self, index: usize) -> Result<(), Error>
Deletes item at the given index.
+Trait Implementations§
Auto Trait Implementations§
§ impl !RefUnwindSafe for Keyring
§ impl Send for Keyring
§ impl Sync for Keyring
§ impl Unpin for Keyring
§ impl !UnwindSafe for Keyring
Blanket Implementations§
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for Keyring
impl Send for Keyring
impl Sync for Keyring
impl Unpin for Keyring
impl !UnwindSafe for Keyring
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
source§impl<T> From<T> for T
impl<T> From<T> for T
source§fn from(t: T) -> T
fn from(t: T) -> T
Returns the argument unchanged.
diff --git a/oo7/portal/struct.SecretProxy.html b/oo7/portal/struct.SecretProxy.html index f1d2abbce..f9d559639 100644 --- a/oo7/portal/struct.SecretProxy.html +++ b/oo7/portal/struct.SecretProxy.html @@ -1,5 +1,5 @@Struct oo7::portal::SecretProxy
source · pub struct SecretProxy<'a>(/* private fields */);
Implementations§
source§impl<'a> SecretProxy<'a>
impl<'a> SecretProxy<'a>
sourcepub async fn new(connection: &Connection) -> Result<SecretProxy<'a>, Error>
pub async fn new(connection: &Connection) -> Result<SecretProxy<'a>, Error>
Create a new instance of SecretProxy
.
Struct oo7::portal::SecretProxy
source · pub struct SecretProxy<'a>(/* private fields */);
unstable
only.Implementations§
source§impl<'a> SecretProxy<'a>
impl<'a> SecretProxy<'a>
sourcepub async fn new(connection: &Connection) -> Result<SecretProxy<'a>, Error>
pub async fn new(connection: &Connection) -> Result<SecretProxy<'a>, Error>
Create a new instance of SecretProxy
.
sourcepub async fn retrieve_secret(&self, fd: &impl AsFd) -> Result<(), Error>
pub async fn retrieve_secret(&self, fd: &impl AsFd) -> Result<(), Error>
Retrieves a master secret for a sandboxed application.
§Arguments
-
diff --git a/src/oo7/dbus/api/mod.rs.html b/src/oo7/dbus/api/mod.rs.html
index 322f93737..ff91b94f0 100644
--- a/src/oo7/dbus/api/mod.rs.html
+++ b/src/oo7/dbus/api/mod.rs.html
@@ -30,6 +30,7 @@
Files
pub(crate) const DESTINATION: &str = "org.freedesktop.secrets";
pub(crate) const PATH: &str = "/org/freedesktop/secrets";
@@ -56,6 +57,7 @@ Files
Files
//! File backend implementation backed by the [Secret portal](https://flatpak.github.io/xdg-desktop-portal/#gdbus-org.freedesktop.portal.Secret).
//!
//! ```no_run
@@ -491,6 +492,7 @@ Files