pub fn password_store_binary<P: FnOnce(Result<(), Error>) + 'static>(
schema: Option<&Schema>,
attributes: HashMap<&str, &str>,
collection: Option<&str>,
label: &str,
value: &Value,
cancellable: Option<&impl IsA<Cancellable>>,
callback: P,
)
Expand description
Store a password in the secret service.
This is similar to password_store()
, but takes a
Value
as the argument instead of a null-terminated password.
This method will return immediately and complete asynchronously.
§schema
the schema for attributes
§attributes
the attribute keys and values
§collection
a collection alias, or D-Bus object path of the collection where to store the secret
§label
label for the secret
§value
a Value
§cancellable
optional cancellation object
§callback
called when the operation completes