pub struct WebsocketSuccessResponse<T> {
pub id: RequestId,
pub type: Option<String>,
pub result: T,
pub warning: Option<String>,
pub warnings: Option<Vec<Value>>,
pub forwarded: Option<bool>,
}Fields§
§id: RequestId(WebSocket only) ID provided in the request that prompted this response
type: Option<String>(WebSocket only) The value response indicates a direct response to an API request. Asynchronous notifications use a different value such as ledgerClosed or transaction.
result: TThe result of the query; contents vary depending on the command.
warning: Option<String>(May be omitted) If this field is provided, the value is the string load. This means the client is approaching the rate limiting threshold where the server will disconnect this client.
warnings: Option<Vec<Value>>(May be omitted) If this field is provided, it contains one or more Warnings Objects with important warnings. For details, see API Warnings. New in: rippled 1.5.0 TODO: Add Warnings Object.
forwarded: Option<bool>(May be omitted) If true, this request and response have been forwarded from a Reporting Mode server to a P2P Mode server (and back) because the request requires data that is not available in Reporting Mode. The default is false.
Trait Implementations§
Source§impl<T: Clone> Clone for WebsocketSuccessResponse<T>
impl<T: Clone> Clone for WebsocketSuccessResponse<T>
Source§fn clone(&self) -> WebsocketSuccessResponse<T>
fn clone(&self) -> WebsocketSuccessResponse<T>
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more