pub struct SuccessResponse { /* private fields */ }Expand description
A struct representing a successful API response for the serverinfo request.
Implementations§
Source§impl SuccessResponse
impl SuccessResponse
Sourcepub fn servers(&self) -> &[ServerInfo]
pub fn servers(&self) -> &[ServerInfo]
Get a reference to the success response’s servers.
Sourcepub fn cooldown_mut(&mut self) -> &mut u64
pub fn cooldown_mut(&mut self) -> &mut u64
Get a mutable reference to the success response’s cooldown.
Sourcepub fn servers_mut(&mut self) -> &mut Vec<ServerInfo>
pub fn servers_mut(&mut self) -> &mut Vec<ServerInfo>
Get a mutable reference to the success response’s servers.
Trait Implementations§
Source§impl Clone for SuccessResponse
impl Clone for SuccessResponse
Source§fn clone(&self) -> SuccessResponse
fn clone(&self) -> SuccessResponse
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 Default for SuccessResponse
impl Default for SuccessResponse
Source§fn default() -> SuccessResponse
fn default() -> SuccessResponse
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for SuccessResponse
impl RefUnwindSafe for SuccessResponse
impl Send for SuccessResponse
impl Sync for SuccessResponse
impl Unpin for SuccessResponse
impl UnwindSafe for SuccessResponse
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