From de311163999e26fde8b3d5204384cbff870b9ef4 Mon Sep 17 00:00:00 2001 From: bilelmoussaoui Date: Sun, 11 Feb 2024 20:03:08 +0000 Subject: [PATCH] deploy: 86650fcab9524d3cd260616646f6b5fd350acc8b --- oo7/dbus/api/index.html | 2 +- oo7/portal/index.html | 4 ++-- oo7/portal/struct.Keyring.html | 26 +++++++++++++------------- oo7/portal/struct.SecretProxy.html | 2 +- src/oo7/dbus/api/mod.rs.html | 2 ++ src/oo7/portal/mod.rs.html | 2 ++ 6 files changed, 21 insertions(+), 17 deletions(-) diff --git a/oo7/dbus/api/index.html b/oo7/dbus/api/index.html index de339316f..8888ce840 100644 --- a/oo7/dbus/api/index.html +++ b/oo7/dbus/api/index.html @@ -1,5 +1,5 @@ oo7::dbus::api - Rust -

Module oo7::dbus::api

source ·
Available on crate feature unstable only.
Expand description

Barebone DBus API of the Secret Service specifications.

+

Module oo7::dbus::api

source ·
Available on crate feature 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§

Enums§

  • File backend specific errors.
  • Details about why an encryption key is consider too weak for writing
\ 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 @@ Keyring in oo7::portal - Rust -

Struct oo7::portal::Keyring

source ·
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.

+

Struct oo7::portal::Keyring

source ·
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

+
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 Items.

+
source

pub async fn items(&self) -> Vec<Result<Item, InvalidItemError>>

Retrieve the list of available Items.

If items cannot be decrypted, InvalidItemErrors are returned for them instead of Items.

-
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 @@

§Argumentsreplace - Whether to replace the value if the attributes matches an existing secret. -
source

pub async fn replace_item_index( +

source

pub async fn replace_item_index( &self, index: usize, item: &Item @@ -46,12 +46,12 @@

§ArgumentsThe index refers to the index of the Vec returned by items(). If the index does not exist, the functions returns an error.

-
source

pub async fn delete_item_index(&self, index: usize) -> Result<(), Error>

Deletes item at the given index.

+
source

pub async fn delete_item_index(&self, index: usize) -> Result<(), Error>

Deletes item at the given index.

The index refers to the index of the Vec returned by items(). If the index does not exist, the functions returns an error.

-
source

pub async fn write(&self) -> Result<(), Error>

Write the changes to the keyring file.

-

Trait Implementations§

source§

impl Debug for Keyring

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where +

source

pub async fn write(&self) -> Result<(), Error>

Write the changes to the keyring file.

+

Trait Implementations§

source§

impl Debug for Keyring

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

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 @@ SecretProxy in oo7::portal - Rust -

Struct oo7::portal::SecretProxy

source ·
pub struct SecretProxy<'a>(/* private fields */);

Implementations§

source§

impl<'a> SecretProxy<'a>

source

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 */);
Available on crate feature unstable only.

Implementations§

source§

impl<'a> SecretProxy<'a>

source

pub async fn new(connection: &Connection) -> Result<SecretProxy<'a>, Error>

Create a new instance of SecretProxy.

source

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

28 29 30 +31
pub(crate) const DESTINATION: &str = "org.freedesktop.secrets";
 pub(crate) const PATH: &str = "/org/freedesktop/secrets";
 
@@ -56,6 +57,7 @@ 

Files

#[cfg(not(feature = "unstable"))] pub(crate) use properties::Properties; #[cfg(feature = "unstable")] +#[cfg_attr(docsrs, doc(cfg(feature = "unstable")))] pub use properties::Properties; pub use secret::Secret; pub use service::Service; diff --git a/src/oo7/portal/mod.rs.html b/src/oo7/portal/mod.rs.html index 11fac55e1..f2b590b94 100644 --- a/src/oo7/portal/mod.rs.html +++ b/src/oo7/portal/mod.rs.html @@ -420,6 +420,7 @@

Files

418 419 420 +421
//! 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

pub use item::Item; pub use secret::Secret; #[cfg(feature = "unstable")] +#[cfg_attr(docsrs, doc(cfg(feature = "unstable")))] pub use secret::SecretProxy; type ItemDefinition = (String, HashMap<String, String>, Zeroizing<Vec<u8>>, bool);