Struct kinto_http::record::Record [] [src]

pub struct Record {
    pub data: Option<Value>,
    pub permissions: Option<RecordPermissions>,
    pub client: KintoClient,
    pub bucket: Bucket,
    pub collection: Collection,
    pub id: String,
    pub timestamp: Option<u64>,
}

Fields

Methods

impl Record
[src]

Create a new record resource.

Trait Implementations

impl Debug for Record
[src]

Formats the value using the given formatter.

impl Clone for Record
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Default for Record
[src]

Returns the "default value" for a type. Read more

impl Resource for Record
[src]

Unwrap a request response and update the current object.

Return the object version timestamp.

Create a custom load request for the endpoint.

Create a custom update request for the endpoint.

Create a custom delete request for the endpoint.

Load bucket by id if exists.

Set current object to the server (create or update).

Create if not exists the current object.

Update an existing object if exists with the current object.

Delete the current object from the server if exists.

impl From<ResponseWrapper> for Record
[src]

Performs the conversion.