Function save_state

Source
pub fn save_state<T: MessageWrite>(
    account: &AccountInfo<'_>,
    state: &T,
    type_indicator: SwitchboardAccountType,
) -> Result<Vec<u8>, ProgramError>