pub struct ServerState<'a> {
pub common_fields: CommonFields<'a>,
pub ledger_index: Option<Cow<'a, str>>,
}
Expand description
The server_state command asks the server for various machine-readable information about the rippled server’s current state. The response is almost the same as the server_info method, but uses units that are easier to process instead of easier to read. (For example, XRP values are given in integer drops instead of scientific notation or decimal values, and time is given in milliseconds instead of seconds.)
See Server State:
<https://xrpl.org/server_state.html#server_state>
Fields§
§common_fields: CommonFields<'a>
The common fields shared by all requests.
ledger_index: Option<Cow<'a, str>>
Implementations§
Trait Implementations§
Source§impl<'a> Clone for ServerState<'a>
impl<'a> Clone for ServerState<'a>
Source§fn clone(&self) -> ServerState<'a>
fn clone(&self) -> ServerState<'a>
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<'a> Debug for ServerState<'a>
impl<'a> Debug for ServerState<'a>
Source§impl<'de, 'a> Deserialize<'de> for ServerState<'a>
impl<'de, 'a> Deserialize<'de> for ServerState<'a>
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<'a> From<ServerState<'a>> for XRPLRequest<'a>
impl<'a> From<ServerState<'a>> for XRPLRequest<'a>
Source§fn from(request: ServerState<'a>) -> Self
fn from(request: ServerState<'a>) -> Self
Converts to this type from the input type.
Source§impl<'a> Model for ServerState<'a>
impl<'a> Model for ServerState<'a>
Source§fn get_errors(&self) -> XRPLModelResult<()>
fn get_errors(&self) -> XRPLModelResult<()>
Collects a models errors and returns the first error that occurs.
Source§fn validate(&self) -> XRPLModelResult<()>
fn validate(&self) -> XRPLModelResult<()>
Simply forwards the error from
get_errors
if there was one.Source§impl<'a> PartialEq for ServerState<'a>
impl<'a> PartialEq for ServerState<'a>
Source§impl<'a> Request<'a> for ServerState<'a>
impl<'a> Request<'a> for ServerState<'a>
fn get_common_fields(&self) -> &CommonFields<'a>
fn get_common_fields_mut(&mut self) -> &mut CommonFields<'a>
Source§impl<'a> Serialize for ServerState<'a>
impl<'a> Serialize for ServerState<'a>
impl<'a> Eq for ServerState<'a>
impl<'a> StructuralPartialEq for ServerState<'a>
Auto Trait Implementations§
impl<'a> Freeze for ServerState<'a>
impl<'a> RefUnwindSafe for ServerState<'a>
impl<'a> Send for ServerState<'a>
impl<'a> Sync for ServerState<'a>
impl<'a> Unpin for ServerState<'a>
impl<'a> UnwindSafe for ServerState<'a>
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.