pub struct ServerRegistration {
pub server: ServerInfo,
pub status: ServerStatus,
pub registered_at: DateTime<Utc>,
pub metadata: HashMap<String, Value>,
}Expand description
Server registration request sent from Horizon to Atlas.
Fields§
§server: ServerInfoServer information
status: ServerStatusCurrent server status
registered_at: DateTime<Utc>Timestamp of registration
metadata: HashMap<String, Value>Optional metadata for custom properties
Implementations§
Source§impl ServerRegistration
impl ServerRegistration
Sourcepub fn new(server: ServerInfo) -> Self
pub fn new(server: ServerInfo) -> Self
Creates a new server registration.
Trait Implementations§
Source§impl Clone for ServerRegistration
impl Clone for ServerRegistration
Source§fn clone(&self) -> ServerRegistration
fn clone(&self) -> ServerRegistration
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 ServerRegistration
impl Debug for ServerRegistration
Source§impl<'de> Deserialize<'de> for ServerRegistration
impl<'de> Deserialize<'de> for ServerRegistration
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 ServerRegistration
impl RefUnwindSafe for ServerRegistration
impl Send for ServerRegistration
impl Sync for ServerRegistration
impl Unpin for ServerRegistration
impl UnsafeUnpin for ServerRegistration
impl UnwindSafe for ServerRegistration
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