pub trait ToTopic {
// Required method
fn to_topic(&self) -> H256;
}
Expand description
Only items implementing ToTopic
may be used as #[indexed]
field
in crate::ToLog
macro usage.
See also (solidity docs on events)[https://docs.soliditylang.org/en/develop/contracts.html#events]
Required Methods§
Sourcefn to_topic(&self) -> H256
fn to_topic(&self) -> H256
Convert value to topic to be used in ethereum::Log