Trait scrypto_test::prelude::IndexEntryContentSource
source · pub trait IndexEntryContentSource<Payload>: Sizedwhere
Payload: IndexEntryPayload,{
// Required method
fn into_content(self) -> <Payload as IndexEntryPayload>::Content;
// Provided methods
fn into_payload(self) -> Payload { ... }
fn into_substate(self) -> IndexEntrySubstate<Payload> { ... }
}
Expand description
This trait is intended to be implemented by types which embody the content of a particular index entry payload.
Note:
- Multiple types might be mappable into the payload, and so implement this trait
- This trait is only one way - from value into content
- This trait uses a generic, because the same type might be usable as a payload for multiple substates
Required Methods§
fn into_content(self) -> <Payload as IndexEntryPayload>::Content
Provided Methods§
fn into_payload(self) -> Payload
fn into_substate(self) -> IndexEntrySubstate<Payload>
Object Safety§
This trait is not object safe.