pub struct ContractKlineStreamParams {
pub contract_address: String,
pub chain_id: String,
pub interval: ContractKlineStreamIntervalEnum,
pub id: Option<u32>,
}Expand description
Request parameters for the [contract_kline_stream] operation.
This struct holds all of the inputs you can pass when calling
contract_kline_stream.
Fields§
§contract_address: StringContract address.
This field is **required.
chain_id: StringChain ID.
This field is **required.
interval: ContractKlineStreamIntervalEnumKline interval.
This field is **required.
id: Option<u32>Unique WebSocket request ID.
This field is **optional.
Implementations§
Source§impl ContractKlineStreamParams
impl ContractKlineStreamParams
Sourcepub fn builder(
contract_address: String,
chain_id: String,
interval: ContractKlineStreamIntervalEnum,
) -> ContractKlineStreamParamsBuilder
pub fn builder( contract_address: String, chain_id: String, interval: ContractKlineStreamIntervalEnum, ) -> ContractKlineStreamParamsBuilder
Create a builder for [contract_kline_stream].
Required parameters:
contract_address— Contract address.chain_id— Chain ID.interval— Kline interval.
Trait Implementations§
Source§impl Clone for ContractKlineStreamParams
impl Clone for ContractKlineStreamParams
Source§fn clone(&self) -> ContractKlineStreamParams
fn clone(&self) -> ContractKlineStreamParams
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ContractKlineStreamParams
impl Debug for ContractKlineStreamParams
Source§impl<'de> Deserialize<'de> for ContractKlineStreamParams
impl<'de> Deserialize<'de> for ContractKlineStreamParams
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
Auto Trait Implementations§
impl Freeze for ContractKlineStreamParams
impl RefUnwindSafe for ContractKlineStreamParams
impl Send for ContractKlineStreamParams
impl Sync for ContractKlineStreamParams
impl Unpin for ContractKlineStreamParams
impl UnsafeUnpin for ContractKlineStreamParams
impl UnwindSafe for ContractKlineStreamParams
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