pub fn read_sequence_number(account: &Value) -> u64 {
        match account {
            Value::Struct(fields) => {
                let sequence_number = fields
                    .get(5)
                    .expect("sequence number must be the fifth field in Account");
                match &*sequence_number.peek() {
                    Value::U64(val) => *val,
                    _ => panic!("sequence number field must exist"),
                }
            }
            _ => panic!("Account must be a Value::Struct"),
        }
    }
/// Returns the sequence number read from a [`Value`] representing the account.
Returns the sequence number read from a [`Value`] representing the account.
Returns the sequence number read from a [ ` Value ` ] representing the account .
pub fn read_sequence_number(account: &Value) -> u64 {
        match account {
            Value::Struct(fields) => {
                let sequence_number = fields
                    .get(5)
                    .expect("sequence number must be the fifth field in Account");
                match &*sequence_number.peek() {
                    Value::U64(val) => *val,
                    _ => panic!("sequence number field must exist"),
                }
            }
            _ => panic!("Account must be a Value::Struct"),
        }
    }
pub fn read_sequence_number ( account : & Value ) -> u64 { match account { Value :: Struct ( fields ) => { let sequence_number = fields . get ( 5 ) . expect ( " " ) ; match & * sequence_number . peek ( ) { Value :: U64 ( val ) => * val , _ => panic ! ( " " ) , } } _ => panic ! ( " " ) , } }
Returns the sequence number read from a [`Value`] representing the account.
Returns the sequence number read from a [ ` Value ` ] representing the account .
account
&Value
account
&Value