pub struct Favorite {
pub id: String,
pub name: String,
pub address: String,
pub last_resolved_ip: Option<String>,
pub last_used: Option<DateTime<Utc>>,
}Expand description
A saved peer/favorite for quick access
Fields§
§id: StringUnique identifier
name: StringUser-friendly name (e.g., “Living Room PC”)
address: StringHostname or IP address
last_resolved_ip: Option<String>Last successfully resolved IP (if available)
last_used: Option<DateTime<Utc>>When this favorite was last used
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Favorite
impl<'de> Deserialize<'de> for Favorite
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for Favorite
impl RefUnwindSafe for Favorite
impl Send for Favorite
impl Sync for Favorite
impl Unpin for Favorite
impl UnwindSafe for Favorite
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more