pub struct OnchainDataQuery {
pub sql: OnchainDataQuerySql,
}
Expand description
Request to execute a SQL query against indexed blockchain data.
JSON schema
{
"description": "Request to execute a SQL query against indexed blockchain data.",
"type": "object",
"required": [
"sql"
],
"properties": {
"sql": {
"description": "SQL query to execute against the indexed blockchain data.",
"examples": [
"SELECT block_number, transaction_hash FROM base.transactions WHERE block_number > 1000000 LIMIT 10"
],
"type": "string",
"maxLength": 10000,
"minLength": 1
}
}
}
Fields§
§sql: OnchainDataQuerySql
SQL query to execute against the indexed blockchain data.
Implementations§
Source§impl OnchainDataQuery
impl OnchainDataQuery
pub fn builder() -> OnchainDataQuery
Trait Implementations§
Source§impl Clone for OnchainDataQuery
impl Clone for OnchainDataQuery
Source§fn clone(&self) -> OnchainDataQuery
fn clone(&self) -> OnchainDataQuery
Returns a duplicate of the value. Read more
1.0.0 · 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 OnchainDataQuery
impl Debug for OnchainDataQuery
Source§impl<'de> Deserialize<'de> for OnchainDataQuery
impl<'de> Deserialize<'de> for OnchainDataQuery
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
Source§impl From<&OnchainDataQuery> for OnchainDataQuery
impl From<&OnchainDataQuery> for OnchainDataQuery
Source§fn from(value: &OnchainDataQuery) -> Self
fn from(value: &OnchainDataQuery) -> Self
Converts to this type from the input type.
Source§impl From<OnchainDataQuery> for OnchainDataQuery
impl From<OnchainDataQuery> for OnchainDataQuery
Source§fn from(value: OnchainDataQuery) -> Self
fn from(value: OnchainDataQuery) -> Self
Converts to this type from the input type.
Source§impl Serialize for OnchainDataQuery
impl Serialize for OnchainDataQuery
Source§impl TryFrom<OnchainDataQuery> for OnchainDataQuery
impl TryFrom<OnchainDataQuery> for OnchainDataQuery
Source§type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
Source§fn try_from(value: OnchainDataQuery) -> Result<Self, ConversionError>
fn try_from(value: OnchainDataQuery) -> Result<Self, ConversionError>
Performs the conversion.
Auto Trait Implementations§
impl Freeze for OnchainDataQuery
impl RefUnwindSafe for OnchainDataQuery
impl Send for OnchainDataQuery
impl Sync for OnchainDataQuery
impl Unpin for OnchainDataQuery
impl UnwindSafe for OnchainDataQuery
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