pub struct PeerRegion {
pub region_id: String,
pub api_url: String,
pub healthy: bool,
pub last_sync_ms: u64,
}Expand description
A peer region endpoint.
Fields§
§region_id: StringRegion identifier.
api_url: StringHTTP API URL for the peer’s Core instance.
healthy: boolWhether the peer is currently healthy.
last_sync_ms: u64Last successful sync timestamp (ms since epoch).
Trait Implementations§
Source§impl Clone for PeerRegion
impl Clone for PeerRegion
Source§fn clone(&self) -> PeerRegion
fn clone(&self) -> PeerRegion
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for PeerRegion
impl Debug for PeerRegion
Source§impl<'de> Deserialize<'de> for PeerRegion
impl<'de> Deserialize<'de> for PeerRegion
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 PeerRegion
impl RefUnwindSafe for PeerRegion
impl Send for PeerRegion
impl Sync for PeerRegion
impl Unpin for PeerRegion
impl UnsafeUnpin for PeerRegion
impl UnwindSafe for PeerRegion
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