pub struct SubscriptionParamsRepr {
pub price_feed_ids: Option<Vec<PriceFeedId>>,
pub symbols: Option<Vec<String>>,
pub properties: Vec<PriceFeedProperty>,
pub formats: Vec<Format>,
pub delivery_format: DeliveryFormat,
pub json_binary_encoding: JsonBinaryEncoding,
pub parsed: bool,
pub channel: Channel,
pub ignore_invalid_feeds: bool,
}Fields§
§price_feed_ids: Option<Vec<PriceFeedId>>List of feed IDs. Either feed ids or symbols must be specified.
symbols: Option<Vec<String>>List of feed symbols. Either feed ids or symbols must be specified.
properties: Vec<PriceFeedProperty>List of feed properties the sender is interested in.
formats: Vec<Format>Requested formats of the payload. As part of each feed update, the server will send on-chain payloads required to validate these price updates on the specified chains.
delivery_format: DeliveryFormatIf json is selected, the server will send price updates as JSON objects
(the on-chain payload will be encoded according to the jsonBinaryEncoding property).
If binary is selected, the server will send price updates as binary messages.
json_binary_encoding: JsonBinaryEncodingFor deliveryFormat == "json", the on-chain payload will be encoded using the specified encoding.
This option has no effect for deliveryFormat == "binary".
parsed: boolIf true, the stream update will contain a parsed JSON field containing
all data of the update.
channel: ChannelChannel determines frequency of updates.
ignore_invalid_feeds: boolIf true, the subscription will ignore invalid feed IDs and subscribe to any valid feeds. Otherwise, the entire subscription will fail if any feed is invalid.
Trait Implementations§
Source§impl Clone for SubscriptionParamsRepr
impl Clone for SubscriptionParamsRepr
Source§fn clone(&self) -> SubscriptionParamsRepr
fn clone(&self) -> SubscriptionParamsRepr
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for SubscriptionParamsRepr
impl Debug for SubscriptionParamsRepr
Source§impl<'de> Deserialize<'de> for SubscriptionParamsRepr
impl<'de> Deserialize<'de> for SubscriptionParamsRepr
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>,
Source§impl Hash for SubscriptionParamsRepr
impl Hash for SubscriptionParamsRepr
Source§impl PartialEq for SubscriptionParamsRepr
impl PartialEq for SubscriptionParamsRepr
Source§impl Serialize for SubscriptionParamsRepr
impl Serialize for SubscriptionParamsRepr
impl Eq for SubscriptionParamsRepr
impl StructuralPartialEq for SubscriptionParamsRepr
Auto Trait Implementations§
impl Freeze for SubscriptionParamsRepr
impl RefUnwindSafe for SubscriptionParamsRepr
impl Send for SubscriptionParamsRepr
impl Sync for SubscriptionParamsRepr
impl Unpin for SubscriptionParamsRepr
impl UnsafeUnpin for SubscriptionParamsRepr
impl UnwindSafe for SubscriptionParamsRepr
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more