pub struct InputToSign {
pub index: u32,
pub signer: Pubkey,
}Expand description
Represents a transaction input that needs to be signed.
An InputToSign contains the index of the input within a transaction
and the public key of the signer that should sign this input.
Fields§
§index: u32§signer: PubkeyImplementations§
Source§impl InputToSign
impl InputToSign
pub fn from_slice(data: &[u8]) -> Result<Self, ProgramError>
pub fn serialise(&self) -> Vec<u8> ⓘ
Trait Implementations§
Source§impl Clone for InputToSign
impl Clone for InputToSign
Source§fn clone(&self) -> InputToSign
fn clone(&self) -> InputToSign
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for InputToSign
impl Debug for InputToSign
Source§impl PartialEq for InputToSign
impl PartialEq for InputToSign
impl Copy for InputToSign
impl Eq for InputToSign
impl StructuralPartialEq for InputToSign
Auto Trait Implementations§
impl Freeze for InputToSign
impl RefUnwindSafe for InputToSign
impl Send for InputToSign
impl Sync for InputToSign
impl Unpin for InputToSign
impl UnwindSafe for InputToSign
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