Function read_with_data_point_id

Source
pub fn read_with_data_point_id<D: Storage<DataPoint>, A: AccessControlRegistry, W: Whitelist<Address = A::Address>>(
    datapoint_id: &Bytes32,
    msg_sender: &A::Address,
    datapoint_storage: &D,
    access: &A,
    whitelist: &W,
) -> Result<(Int, u32), Error>
Expand description

Reads the data point with ID Returns tuple containing (DataPoint.value, DataPoint.timestamp).

ยงArguments

  • datapoint_id Data point ID
  • msg_sender Address of who sent the transaction
  • datapoint_storage Data point storage that links datapoint_id to Datapoint
  • access The access control registry used
  • whitelist The whitelist implementation used