fn _request_iterate(&self, max_requests: &u64, req: (u128, OracleRequest), result: &mut Vec<RequestsJSON>, counter: &mut u64) {
        if *counter == *max_requests || *counter > self.requests.len() {
            return
        }
        let nonce = req.0;
        let oracle_request = req.1;
        result.push(RequestsJSON {
            nonce: U128(nonce),
            request: oracle_request,
        });

        *counter += 1;
    }
/// Helper function while iterating through account requests
Helper function while iterating through account requests
Helper function while iterating through account requests
fn _request_iterate(&self, max_requests: &u64, req: (u128, OracleRequest), result: &mut Vec<RequestsJSON>, counter: &mut u64) {
        if *counter == *max_requests || *counter > self.requests.len() {
            return
        }
        let nonce = req.0;
        let oracle_request = req.1;
        result.push(RequestsJSON {
            nonce: U128(nonce),
            request: oracle_request,
        });
        *counter += 1;
    }
fn _request_iterate ( & self , max_requests : & u64 , req : ( u128 , OracleRequest ) , result : & mut Vec < RequestsJSON > , counter : & mut u64 ) { if * counter == * max_requests || * counter > self . requests . len ( ) { return } let nonce = req . 0 ; let oracle_request = req . 1 ; result . push ( RequestsJSON { nonce : U128 ( nonce ) , request : oracle_request , } ) ; * counter += 1 ; }
Helper function while iterating through account requests
Helper function while iterating through account requests
&self
max_requests
&u64
req
(u128, OracleRequest)
result
&mut Vec<RequestsJSON>
counter
&mut u64
&self
max_requests
&u64
req
(u128, OracleRequest)
result
&mut Vec<RequestsJSON>
counter
&mut u64