Derive Debug on everything
This commit is contained in:
parent
e2c2fdea8f
commit
4c604a0758
11 changed files with 12 additions and 1 deletions
|
|
@ -7,6 +7,7 @@ use crate::interface::{
|
|||
use std::ops::Deref;
|
||||
use zbus::Result;
|
||||
|
||||
#[derive(Debug)]
|
||||
pub struct AccessPoint<'a>(AccessPointProxy<'a>);
|
||||
|
||||
impl<'a> AccessPoint<'a> {
|
||||
|
|
|
|||
|
|
@ -13,6 +13,7 @@ use crate::{
|
|||
use std::ops::Deref;
|
||||
use zbus::Result;
|
||||
|
||||
#[derive(Debug)]
|
||||
pub struct ActiveConnection<'a>(ActiveConnectionProxy<'a>);
|
||||
|
||||
impl<'a> ActiveConnection<'a> {
|
||||
|
|
|
|||
|
|
@ -3,6 +3,7 @@ use crate::interface::config::ip4::Ipv4ConfigProxy;
|
|||
use std::{net::Ipv4Addr, ops::Deref};
|
||||
use zbus::Result;
|
||||
|
||||
#[derive(Debug)]
|
||||
pub struct Ipv4Config<'a>(Ipv4ConfigProxy<'a>);
|
||||
|
||||
impl<'a> Ipv4Config<'a> {
|
||||
|
|
|
|||
|
|
@ -3,6 +3,7 @@ use crate::interface::config::ip6::Ipv6ConfigProxy;
|
|||
use std::{net::Ipv6Addr, ops::Deref};
|
||||
use zbus::Result;
|
||||
|
||||
#[derive(Debug)]
|
||||
pub struct Ipv6Config<'a>(Ipv6ConfigProxy<'a>);
|
||||
|
||||
impl<'a> Ipv6Config<'a> {
|
||||
|
|
|
|||
|
|
@ -20,6 +20,7 @@ use crate::{
|
|||
use std::{net::Ipv4Addr, ops::Deref};
|
||||
use zbus::Result;
|
||||
|
||||
#[derive(Debug)]
|
||||
pub struct Device<'a>(DeviceProxy<'a>);
|
||||
|
||||
impl<'a> Device<'a> {
|
||||
|
|
|
|||
|
|
@ -5,6 +5,7 @@ use crate::interface::device::{bluetooth::BluetoothDeviceProxy, DeviceProxy};
|
|||
use std::ops::Deref;
|
||||
use zbus::Result;
|
||||
|
||||
#[derive(Debug)]
|
||||
pub struct BluetoothDevice<'a>(BluetoothDeviceProxy<'a>);
|
||||
|
||||
impl<'a> BluetoothDevice<'a> {
|
||||
|
|
|
|||
|
|
@ -5,6 +5,7 @@ use crate::interface::device::{wired::WiredDeviceProxy, DeviceProxy};
|
|||
use std::ops::Deref;
|
||||
use zbus::Result;
|
||||
|
||||
#[derive(Debug)]
|
||||
pub struct WiredDevice<'a>(WiredDeviceProxy<'a>);
|
||||
|
||||
impl<'a> WiredDevice<'a> {
|
||||
|
|
|
|||
|
|
@ -12,6 +12,7 @@ use crate::{
|
|||
use std::ops::Deref;
|
||||
use zbus::Result;
|
||||
|
||||
#[derive(Debug)]
|
||||
pub struct WirelessDevice<'a>(WirelessDeviceProxy<'a>);
|
||||
|
||||
impl<'a> WirelessDevice<'a> {
|
||||
|
|
|
|||
|
|
@ -13,6 +13,7 @@ use crate::{
|
|||
};
|
||||
use zbus::{zvariant::ObjectPath, Result};
|
||||
|
||||
#[derive(Debug)]
|
||||
pub struct NetworkManager<'a>(NetworkManagerProxy<'a>);
|
||||
|
||||
impl<'a> NetworkManager<'a> {
|
||||
|
|
|
|||
|
|
@ -6,6 +6,7 @@ use self::connection::Connection;
|
|||
use crate::interface::settings::{connection::ConnectionSettingsProxy, SettingsProxy};
|
||||
use zbus::Result;
|
||||
|
||||
#[derive(Debug)]
|
||||
pub struct NetworkManagerSettings<'a>(SettingsProxy<'a>);
|
||||
|
||||
impl<'a> NetworkManagerSettings<'a> {
|
||||
|
|
|
|||
|
|
@ -4,6 +4,7 @@ use crate::interface::settings::connection::ConnectionSettingsProxy;
|
|||
use derive_builder::Builder;
|
||||
use std::ops::Deref;
|
||||
|
||||
#[derive(Debug)]
|
||||
pub struct Connection<'a>(ConnectionSettingsProxy<'a>);
|
||||
|
||||
impl<'a> Deref for Connection<'a> {
|
||||
|
|
@ -22,7 +23,7 @@ impl<'a> From<ConnectionSettingsProxy<'a>> for Connection<'a> {
|
|||
|
||||
macro_rules! derive_value_build {
|
||||
($name:ident, $(($arg:ident($rename:expr): $arg_ty:ty)),*) => {
|
||||
#[derive(Builder, Clone, zbus::zvariant::DeserializeDict, zbus::zvariant::SerializeDict, zbus::zvariant::Type)]
|
||||
#[derive(Debug, Builder, Clone, zbus::zvariant::DeserializeDict, zbus::zvariant::SerializeDict, zbus::zvariant::Type)]
|
||||
pub struct $name {
|
||||
$(
|
||||
#[zvariant(rename = $rename)]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue