Struct hapi_core::instruction::UpdateReporter
source · [−]pub struct UpdateReporter {
pub role: ReporterRole,
pub name: [u8; 32],
}
Expand description
Instruction.
Fields
role: ReporterRole
name: [u8; 32]
Trait Implementations
sourceimpl BorshDeserialize for UpdateReporter where
ReporterRole: BorshDeserialize,
[u8; 32]: BorshDeserialize,
impl BorshDeserialize for UpdateReporter where
ReporterRole: BorshDeserialize,
[u8; 32]: BorshDeserialize,
sourcefn deserialize(buf: &mut &[u8]) -> Result<Self, Error>
fn deserialize(buf: &mut &[u8]) -> Result<Self, Error>
Deserializes this instance from a given slice of bytes. Updates the buffer to point at the remaining bytes. Read more
fn try_from_slice(v: &[u8]) -> Result<Self, Error>
fn try_from_slice(v: &[u8]) -> Result<Self, Error>
Deserialize this instance from a slice of bytes.
sourceimpl BorshSerialize for UpdateReporter where
ReporterRole: BorshSerialize,
[u8; 32]: BorshSerialize,
impl BorshSerialize for UpdateReporter where
ReporterRole: BorshSerialize,
[u8; 32]: BorshSerialize,
Auto Trait Implementations
impl RefUnwindSafe for UpdateReporter
impl Send for UpdateReporter
impl Sync for UpdateReporter
impl Unpin for UpdateReporter
impl UnwindSafe for UpdateReporter
Blanket Implementations
impl<T> AbiExample for T
impl<T> AbiExample for T
default fn example() -> T
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more