ts fn can go. its getting less uses!
This commit is contained in:
@@ -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,
|
||||
}
|
||||
|
||||
@@ -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};
|
||||
|
||||
Reference in New Issue
Block a user