Struct kinto_http::collection::Collection [] [src]

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

Fields

Methods

impl Collection
[src]

Create a new collection resource.

Create a new empty record with a generated id.

List the names of all available records.

Delete all available records.

Trait Implementations

impl Debug for Collection
[src]

Formats the value using the given formatter.

impl Clone for Collection
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Default for Collection
[src]

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

impl Resource for Collection
[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 Collection
[src]

Performs the conversion.