pub struct RawResponse {
pub success: bool,
pub error: Option<String>,
pub servers: Option<Vec<RawServerInfo>>,
pub cooldown: Option<u64>,
}
Expand description
A struct representing the raw serverinfo
response.
Fields§
§success: bool
§error: Option<String>
§servers: Option<Vec<RawServerInfo>>
§cooldown: Option<u64>
Trait Implementations§
Source§impl Clone for RawResponse
impl Clone for RawResponse
Source§fn clone(&self) -> RawResponse
fn clone(&self) -> RawResponse
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<'de> Deserialize<'de> for RawResponse
impl<'de> Deserialize<'de> for RawResponse
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
Source§impl From<RawResponse> for Response
impl From<RawResponse> for Response
Source§fn from(raw: RawResponse) -> Self
fn from(raw: RawResponse) -> Self
Converts to this type from the input type.
Source§impl From<Response> for RawResponse
impl From<Response> for RawResponse
Auto Trait Implementations§
impl Freeze for RawResponse
impl RefUnwindSafe for RawResponse
impl Send for RawResponse
impl Sync for RawResponse
impl Unpin for RawResponse
impl UnwindSafe for RawResponse
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