Struct ckb_sdk_types::transaction::Resource [−][src]
pub struct Resource { /* fields omitted */ }
Implementations
pub fn from_both<L: MockResourceLoader>(
mock_tx: &MockTransaction,
loader: L
) -> Result<Resource, String>
Trait Implementations
load cell_data from memory, fallback to storage access
fetch cell_data from storage
fetch cell_data_hash from storage
load cell_data_hash from memory, fallback to storage access
TODO(doc): @quake
Check if header in main chain
TODO(doc): @quake
Return timestamp and block_number of the corresponding block_hash, and hash of parent block
Return past block median time, including the timestamp of the given one