pub struct ApiRegistrationResponse {
pub success: bool,
pub server_id: String,
pub message: String,
pub heartbeat_interval_secs: u32,
pub adjacent_servers: Vec<AdjacentServerInfo>,
}Expand description
API response when a server registers.
Fields§
§success: bool§server_id: String§message: String§heartbeat_interval_secs: u32§adjacent_servers: Vec<AdjacentServerInfo>Trait Implementations§
Source§impl Clone for ApiRegistrationResponse
impl Clone for ApiRegistrationResponse
Source§fn clone(&self) -> ApiRegistrationResponse
fn clone(&self) -> ApiRegistrationResponse
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 ApiRegistrationResponse
impl Debug for ApiRegistrationResponse
Source§impl<'de> Deserialize<'de> for ApiRegistrationResponse
impl<'de> Deserialize<'de> for ApiRegistrationResponse
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 ApiRegistrationResponse
impl RefUnwindSafe for ApiRegistrationResponse
impl Send for ApiRegistrationResponse
impl Sync for ApiRegistrationResponse
impl Unpin for ApiRegistrationResponse
impl UnsafeUnpin for ApiRegistrationResponse
impl UnwindSafe for ApiRegistrationResponse
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