Struct kinto_http::bucket::Bucket [] [src]

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

Fields

Methods

impl Bucket
[src]

Create a new bucket resource.

Create a new empty collection with a generated id.

List the names of all available collections.

Delete all available collections.

Create a custom list collections request.

Create a custom delete collections request.

Create a custom create collection request.

Trait Implementations

impl Debug for Bucket
[src]

Formats the value using the given formatter.

impl Clone for Bucket
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Default for Bucket
[src]

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

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

Performs the conversion.