pub struct Annotation {
pub signer: Pubkey,
pub data: Vec<u8>,
}
Fields§
§signer: Pubkey
§data: Vec<u8>
Implementations§
source§impl Annotation
impl Annotation
sourcepub fn parse(
instructions: &AccountInfo<'_>,
ed25519_instruction_index: u16
) -> Result<Annotation, ParseError>
pub fn parse( instructions: &AccountInfo<'_>, ed25519_instruction_index: u16 ) -> Result<Annotation, ParseError>
Parses an annotation from an Ed25519 instruction. The Ed25519 instruction must verify exactly one signature.
Auto Trait Implementations§
impl RefUnwindSafe for Annotation
impl Send for Annotation
impl Sync for Annotation
impl Unpin for Annotation
impl UnwindSafe for Annotation
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