Skip to main content
pub struct DeleteRecordsRequestOptions 
    pub global_expression: String,
    pub record_id: String,
    pub delete_all_records: String,

Optional parameters for the /delete/records endpoint.

Default::default() is the empty set: only options set explicitly are sent, and anything left empty falls back to the server’s own default.

Fields

global_expression: String

An optional global expression to reduce the search space of the expressions.

record_id: String

A record ID identifying a single record, obtained at the time of insertion of the record or by calling /get/records/fromcollection with the return_record_ids option. This option cannot be used to delete records from replicated tables.

delete_all_records: String

If set to true, all records in the table will be deleted. If set to false, then the option is effectively ignored. Server default: false.

Implementations

Source

pub fn to_map(&self) -> HashMap<String, String>

Converts the set (non-empty) options into the wire-format string map.

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