Skip to main content

PredictionActivity

Struct PredictionActivity 

Source
pub struct PredictionActivity {
Show 52 fields pub activity_id: String, pub amount: String, pub amount_in_usd: String, pub asset_ids: Vec<String>, pub block_number: i64, pub collateral_amount: String, pub collateral_amount_in_usd: String, pub collateral_token_address: String, pub collateral_token_symbol: String, pub condition_id: String, pub counterparty: String, pub economic_amount: String, pub economic_amount_in_usd: String, pub economic_outcome: String, pub economic_price: String, pub economic_token_id: String, pub event_slug: String, pub fee_amount: String, pub fee_amount_in_usd: String, pub fee_payer: String, pub fee_recipient: String, pub fee_token_address: String, pub fee_token_symbol: String, pub log_index: i64, pub market_icon: String, pub market_id: String, pub market_question: String, pub outcome: String, pub outcomes: Vec<String>, pub participant_role: PredictionParticipantRole, pub price: String, pub price_per_share: String, pub quantity: String, pub raw_amount: String, pub raw_outcome: String, pub raw_price: String, pub raw_token_id: String, pub raw_type: String, pub seq_index: i64, pub source: String, pub taker: String, pub taker_age: i64, pub taker_image: String, pub taker_name: String, pub taker_order_hash: String, pub taker_pseudonym: String, pub taker_tags: Vec<String>, pub timestamp: i64, pub token_id: String, pub tx_hash: String, pub type_: String, pub wallet: String,
}
Expand description

PredictionActivity

JSON schema
{
 "type": "object",
 "properties": {
   "activityId": {
     "default": "",
     "type": "string"
   },
   "amount": {
     "default": "",
     "type": "string"
   },
   "amountInUsd": {
     "default": "",
     "type": "string"
   },
   "assetIds": {
     "type": "array",
     "items": {
       "type": "string"
     }
   },
   "blockNumber": {
     "default": 0,
     "type": "integer",
     "format": "int64",
     "minimum": 0.0
   },
   "collateralAmount": {
     "default": "",
     "type": "string"
   },
   "collateralAmountInUsd": {
     "default": "",
     "type": "string"
   },
   "collateralTokenAddress": {
     "default": "",
     "type": "string"
   },
   "collateralTokenSymbol": {
     "default": "",
     "type": "string"
   },
   "conditionId": {
     "default": "",
     "type": "string"
   },
   "counterparty": {
     "default": "",
     "type": "string"
   },
   "economicAmount": {
     "default": "",
     "type": "string"
   },
   "economicAmountInUsd": {
     "default": "",
     "type": "string"
   },
   "economicOutcome": {
     "default": "",
     "type": "string"
   },
   "economicPrice": {
     "default": "",
     "type": "string"
   },
   "economicTokenId": {
     "default": "",
     "type": "string"
   },
   "eventSlug": {
     "default": "",
     "type": "string"
   },
   "feeAmount": {
     "default": "",
     "type": "string"
   },
   "feeAmountInUsd": {
     "default": "",
     "type": "string"
   },
   "feePayer": {
     "default": "",
     "type": "string"
   },
   "feeRecipient": {
     "default": "",
     "type": "string"
   },
   "feeTokenAddress": {
     "default": "",
     "type": "string"
   },
   "feeTokenSymbol": {
     "default": "",
     "type": "string"
   },
   "logIndex": {
     "default": 0,
     "type": "integer",
     "format": "int64",
     "minimum": 0.0
   },
   "marketIcon": {
     "default": "",
     "type": "string"
   },
   "marketId": {
     "default": "",
     "type": "string"
   },
   "marketQuestion": {
     "default": "",
     "type": "string"
   },
   "outcome": {
     "default": "",
     "type": "string"
   },
   "outcomes": {
     "type": "array",
     "items": {
       "type": "string"
     }
   },
   "participantRole": {
     "default": "unknown",
     "oneOf": [
       {
         "$ref": "#/components/schemas/PredictionParticipantRole"
       }
     ]
   },
   "price": {
     "default": "",
     "type": "string"
   },
   "pricePerShare": {
     "default": "",
     "type": "string"
   },
   "quantity": {
     "default": "",
     "type": "string"
   },
   "rawAmount": {
     "default": "",
     "type": "string"
   },
   "rawOutcome": {
     "default": "",
     "type": "string"
   },
   "rawPrice": {
     "default": "",
     "type": "string"
   },
   "rawTokenId": {
     "default": "",
     "type": "string"
   },
   "rawType": {
     "default": "",
     "type": "string"
   },
   "seqIndex": {
     "default": 0,
     "type": "integer",
     "format": "int64",
     "minimum": 0.0
   },
   "source": {
     "default": "",
     "type": "string"
   },
   "taker": {
     "default": "",
     "type": "string"
   },
   "takerAge": {
     "default": 0,
     "type": "integer",
     "format": "int64",
     "minimum": 0.0
   },
   "takerImage": {
     "default": "",
     "type": "string"
   },
   "takerName": {
     "default": "",
     "type": "string"
   },
   "takerOrderHash": {
     "default": "",
     "type": "string"
   },
   "takerPseudonym": {
     "default": "",
     "type": "string"
   },
   "takerTags": {
     "default": [],
     "type": "array",
     "items": {
       "type": "string"
     }
   },
   "timestamp": {
     "default": 0,
     "type": "integer",
     "format": "int64",
     "minimum": 0.0
   },
   "tokenId": {
     "default": "",
     "type": "string"
   },
   "txHash": {
     "default": "",
     "type": "string"
   },
   "type": {
     "default": "",
     "type": "string"
   },
   "wallet": {
     "default": "",
     "type": "string"
   }
 }
}

Fields§

§activity_id: String§amount: String§amount_in_usd: String§asset_ids: Vec<String>§block_number: i64§collateral_amount: String§collateral_amount_in_usd: String§collateral_token_address: String§collateral_token_symbol: String§condition_id: String§counterparty: String§economic_amount: String§economic_amount_in_usd: String§economic_outcome: String§economic_price: String§economic_token_id: String§event_slug: String§fee_amount: String§fee_amount_in_usd: String§fee_payer: String§fee_recipient: String§fee_token_address: String§fee_token_symbol: String§log_index: i64§market_icon: String§market_id: String§market_question: String§outcome: String§outcomes: Vec<String>§participant_role: PredictionParticipantRole§price: String§price_per_share: String§quantity: String§raw_amount: String§raw_outcome: String§raw_price: String§raw_token_id: String§raw_type: String§seq_index: i64§source: String§taker: String§taker_age: i64§taker_image: String§taker_name: String§taker_order_hash: String§taker_pseudonym: String§taker_tags: Vec<String>§timestamp: i64§token_id: String§tx_hash: String§type_: String§wallet: String

Implementations§

Trait Implementations§

Source§

impl Clone for PredictionActivity

Source§

fn clone(&self) -> PredictionActivity

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for PredictionActivity

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Default for PredictionActivity

Source§

fn default() -> Self

Returns the “default value” for a type. Read more
Source§

impl<'de> Deserialize<'de> for PredictionActivity

Source§

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 From<&PredictionActivity> for PredictionActivity

Source§

fn from(value: &PredictionActivity) -> Self

Converts to this type from the input type.
Source§

impl From<PredictionActivity> for PredictionActivity

Source§

fn from(value: PredictionActivity) -> Self

Converts to this type from the input type.
Source§

impl Serialize for PredictionActivity

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more
Source§

impl TryFrom<PredictionActivity> for PredictionActivity

Source§

type Error = ConversionError

The type returned in the event of a conversion error.
Source§

fn try_from(value: PredictionActivity) -> Result<Self, ConversionError>

Performs the conversion.

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,

Source§

impl<T> ErasedDestructor for T
where T: 'static,

Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> PolicyExt for T
where T: ?Sized,

Source§

fn and<P, B, E>(self, other: P) -> And<T, P>
where T: Sized + Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns Action::Follow only if self and other return Action::Follow. Read more
Source§

fn or<P, B, E>(self, other: P) -> Or<T, P>
where T: Sized + Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns Action::Follow if either self or other returns Action::Follow. Read more
Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

Source§

fn vzip(self) -> V

Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more