Skip to content

Commit

Permalink
Add default service information to all proxy macro builders
Browse files Browse the repository at this point in the history
Not doing so is warned against now
  • Loading branch information
complexspaces committed Jan 30, 2023
1 parent 0abaa2c commit 629d637
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 3 deletions.
5 changes: 4 additions & 1 deletion src/proxy/collection.rs
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,10 @@ use super::SecretStruct;
/// This will derive CollectionProxy
///
/// Note that `Value` in the method signatures corresponds to `VARIANT` dbus type.
#[dbus_proxy(interface = "org.freedesktop.Secret.Collection")]
#[dbus_proxy(
interface = "org.freedesktop.Secret.Collection",
default_service = "org.freedesktop.Secret.Collection"
)]
trait Collection {
/// Returns prompt: ObjectPath
fn delete(&self) -> zbus::Result<OwnedObjectPath>;
Expand Down
5 changes: 4 additions & 1 deletion src/proxy/item.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,10 @@ use super::SecretStruct;
/// A dbus proxy for speaking with secret service's `Item` Interface.
///
/// This will derive ItemProxy
#[dbus_proxy(interface = "org.freedesktop.Secret.Item")]
#[dbus_proxy(
interface = "org.freedesktop.Secret.Item",
default_service = "org.freedesktop.Secret.Item"
)]
trait Item {
fn delete(&self) -> zbus::Result<OwnedObjectPath>;

Expand Down
5 changes: 4 additions & 1 deletion src/proxy/prompt.rs
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,10 @@ use zbus::{dbus_proxy, zvariant::Value};
/// This will derive PromptProxy
///
/// Note that `Value` in the method signatures corresponds to `VARIANT` dbus type.
#[dbus_proxy(interface = "org.freedesktop.Secret.Prompt")]
#[dbus_proxy(
interface = "org.freedesktop.Secret.Prompt",
default_service = "org.freedesktop.Secret.Prompt"
)]
trait Prompt {
fn prompt(&self, window_id: &str) -> zbus::Result<()>;

Expand Down

0 comments on commit 629d637

Please sign in to comment.