Struct wwsvc_rs::client::WebwareClient[][src]

pub struct WebwareClient { /* fields omitted */ }
Expand description

The web client to consume SoftENGINE’s WEBSERVICES

Implementations

Creates a new pagination cursor and makes it available for the next requests (until it is closed)

Sets the maximum amount of results that are returned in a response

Returns a set of headers, that are required on all requests to the WEBSERVICES (except REGISTER).

This will automatically append necessary authentication headers and increase the request ID, if register() was successful.

Returns the same set of headers, that get_default_headers() returns, except the result type header is set to BIN instead.

Builds a valid WEBSERVICES URL from URL parts

Sends a REGISTER request to the WEBWARE instance and returns whether the request succeeded or not.

If the result is not true, the client has no valid service pass and cannot perform requests!

Sends a DEREGISTER request to the WEBWARE instance, in order to invalidate the service pass.

If the client was not authenticated using register() before, it will instead just return true;

Performs a request to the WEBSERVICES and returns a JSON value.

Performs a request to the WEBSERVICES and returns a response object.

Performs a request to the WEBSERVICES and deserializes the response to the type T.

Discards headers from responses to directly deserialize.

NOTE: Due to the nature of the WEBSERVICES, deserialization might fail due to structural issues. In that case, use request() instead.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more