[−][src]Crate apollo_client
Rust🦀 client for Apollo.
Power by Rust async/await
.
Installation
With cargo add installed run:
$ cargo add -s apollo-client
Features
-
Not all features are default, you can read the
[features]
section of Cargo.toml to know all the features. -
The
xml
andyaml
features aren't enable by default, if you have such kind namespace, you should addfeatures
inCargo.toml
, just like:apollo-client = { version = "0.5", features = ["yaml", "xml"] }
Or simply enable all features:
apollo-client = { version = "0.5", features = ["full"] }
-
By default, using curl client
isahc
to handle http request, you can switch tohyper
by enable thewith-hyper
feature.apollo-client = { version = "0.5", default-features = false, features = ["with-hyper"] }
Or:
apollo-client = { version = "0.5", default-features = false, features = ["full-hyper"] }
Or specify the
Scenario
.
Usage
You can find some examples in the examples directory.
License
Unlicense.
Structs
Client | Represents the apollo client. |
ClientConfig | Configuration of Apollo and api information. |
Response | Apollo config api response. |
Responses | Apollo config api responses. |
Enums
ClientError | Apollo client crate side |
IpValue | Apollo config api |
NamespaceKind | Kind of a configuration namespace. |
Scenario | Scenario for Client. |
Functions
canonicalize_namespace | Canonicalize the namespace. Just add |
Type Definitions
ClientResult | Apollo client crate side |