ts fn can go. its getting less uses!

This commit is contained in:
lda
2026-04-28 18:15:41 +07:00 Verified
parent aa698a9f4b
commit d0fa6bf526
9 changed files with 40 additions and 28 deletions
+6 -1
View File
@@ -25,8 +25,13 @@ pub struct DhcpLeaseWithState {
pub nud_state: Option<NeighborState>,
}
/// Options for lease retrieval from the service layer.
/// Legacy options for lease retrieval from the service layer.
///
/// Prefer inventory for device state; lease rows are now best treated as a raw
/// dnsmasq snapshot.
#[deprecated(note = "prefer get_leases() or inventory; neighbor state belongs in inventory")]
#[derive(Debug, Default, Clone, Serialize, Deserialize)]
pub struct LeaseQuery {
#[deprecated(note = "prefer inventory for device state")]
pub include_state: bool,
}
+3 -1
View File
@@ -6,7 +6,9 @@ mod query;
mod wake;
pub use device::{Device, DeviceId, DeviceInventory, DeviceObservationFact, Presence};
pub use dhcp::{DhcpLease, DhcpLeaseWithState, LeaseQuery};
#[allow(deprecated)]
pub use dhcp::LeaseQuery;
pub use dhcp::{DhcpLease, DhcpLeaseWithState};
pub use interface::{InterfaceAddr, InterfaceSummary};
pub use neighbor::{NeighborEntry, NeighborParseError, NeighborState, parse_neighbor_line};
pub use query::{InventoryQuery, InventoryQueryBuilder, NamePath, Query, QueryInput};