Skip to main content
pub struct GetRecordsJsonResponse  /* private fields */ 

The records /get/records/json returned.

Implementations

Source

pub fn new( total_records: i32, has_more_records: bool, json_records: impl Into<String>, ) -> Self

A response with every field given. Default gives one with no records.

Source

pub fn total_records(&self) -> i32

The total number of records the server reported.

Whether more records are left past those returned.

Source

pub fn json_records(&self) -> &str

The records, as a JSON array.

Trait Implementations

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source

fn fmt(&self, f: &mut Formatter<’_>) -> Result

Formats the value using the given formatter. Read more
Returns the “default value” for a type. Read more
Source

fn fmt(&self, f: &mut Formatter<’_>) -> Result

GetRecordsJsonResponse [total_records=<n>, has_more_records=<b>, json_records=<records>].

Tests for self and other values to be equal, and is used by ==.
1.0.0 (const: unstable) · Source

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.