Skip to main content

GateioSubResponse

Type Alias GateioSubResponse 

Source
pub type GateioSubResponse = GateioMessage<GateioSubResult>;
Expand description

Expected Gateio Subscription response type wrapped in the generic GateioMessage<T>.

Aliased Type§

pub struct GateioSubResponse {
    pub channel: String,
    pub error: Option<GateioError>,
    pub data: GateioSubResult,
}

Fields§

§channel: String§error: Option<GateioError>§data: GateioSubResult

Trait Implementations§

Source§

impl Validator for GateioSubResponse

Source§

type Error = SocketError

Source§

fn validate(self) -> Result<Self, Self::Error>
where Self: Sized,

Check if Self is valid for some use case.