Module lexoffice::request[][src]

module that handles requests to the Lexoffice API

Modules

stream

This module provides functionality to stream page items.

Structs

RequestWithState

Represents a request to the lexoffice API. Please note that in order to create a working Request the Type variable T must allow requests to be made. The type variable S is an optional argument that allows to share state of the time, for example to make sure that certain functions have been called.

ResultInfo

This struct is returned when an object has changed

Traits

ById

This trait marks a Request as ById-requestable and unlocks the Request::by_id_url(), Request::by_id_str(), Request::by_id() methods.

Deletable

This trait marks a Request as Deletable and unlocks the Request::delete() method.

Endpoint

This crate is needed in order to build an URL for a request. It is implemented by all Request variants that allow Requests to the API.

HasId

Represents type with an id.

Paginated

This trait marks a Request as Paginated and unlocks the Request::page(), Request::page_size(), and Request::stream() methods.

Storable

This trait marks a Request as Storable and unlocks the Request::save() method.

Updatable

This trait marks a Request as Updatable and unlocks the Request::update() method.

Type Definitions

Request

Represents a request to the lexoffice API. Please note that in order to create a working Request the Type variable T must allow requests to be made.

VoucherlistState

This type represents the state of a Request to the Voucherlist endpoint that configuration hasn’t been finished

VoucherlistStateFinished

This type represents the state of a Request to the Voucherlist endpoint that is ready to be sent

VoucherlistStateUnstarted

This type represents the state of a Request to the Voucherlist endpoint hasn’t been started to be configured