Struct foxhole_api::Client[][src]

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

Client for fetching data from the war API.

This client contains an HTTP client, and only one instance should be needed per process.

Implementations

Retrieves information about the current war.

This endpoint retrieves information about the current war, and returns it deserialized as WarDataResponse.

Retrieves all map names.

This endpoint retrieves all map names currently present, and returns them deserialized as MapNameResponse.

Retrieves all static map data.

This endpoint retrieves all map data that will never change over the course of a war. This includes map text labels and resource node locations.

Retrieves all dynamic map data.

This endpoint retrieves all map daa that could change over the course of a war. This includes relic bases, and town halls that could change team ownership. Private data, such as player built fortifications, is not available.

Trait Implementations

Returns the “default value” for a type. Read more

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