pub trait State<T> {
    // Required methods
    fn state(&self) -> Result<T, InstructionError>;
    fn set_state(&self, state: &T) -> Result<(), InstructionError>;
}

Required Methods§

Implementors§

source§

impl<'a, T> State<T> for KeyedAccount<'a>where T: Serialize + DeserializeOwned,