pub struct Report {
pub feed_id: ID,
pub valid_from_timestamp: usize,
pub observations_timestamp: usize,
pub full_report: String,
}Expand description
Represents a report that will be returned from the Data Streams DON.
The Report struct contains the following fields:
feed_id: The unique identifier of the feed.valid_from_timestamp: Earliest timestamp for which price is applicable.observations_timestamp: Latest timestamp for which price is applicable.full_report: The report data (bytes) that needs to be decoded further - to version-specific report data.
§Examples
use chainlink_data_streams_report::report::Report;
use chainlink_data_streams_report::feed_id::ID;
let id = ID::from_hex_str("0x00016b4aa7e57ca7b68ae1bf45653f56b656fd3aa335ef7fae696b663f1b8472").unwrap();
let report = Report {
feed_id: id,
valid_from_timestamp: 1718885772,
observations_timestamp: 1718885772,
full_report: "00016b4aa7e57ca7b68ae1bf45653f56b656fd3aa335ef7fae696b663f1b84720000000000000000000000000000000000000000000000000000000066741d8c00000000000000000000000000000000000000000000000000000000000000640000000000000000000000000000000000000000000000000000000000000064000000000000000000000000000000000000000000000000000000000000006400000000000000000000000000000000000000000000000000000000000000640000070407020401522602090605060802080505a335ef7fae696b663f1b840100000000000000000000000000000000000000000000000000000000000bbbda0000000000000000000000000000000000000000000000000000000066741d8c".to_string(),
};Fields§
§feed_id: ID§valid_from_timestamp: usize§observations_timestamp: usize§full_report: StringTrait Implementations§
Source§impl<'de> Deserialize<'de> for Report
impl<'de> Deserialize<'de> for Report
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
impl Eq for Report
impl StructuralPartialEq for Report
Auto Trait Implementations§
impl Freeze for Report
impl RefUnwindSafe for Report
impl Send for Report
impl Sync for Report
impl Unpin for Report
impl UnwindSafe for Report
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