Expand description
One spelling of UpCloud’s paths, under every implementation.
Every crate::UpCloudApi method becomes ONE Call here — method, path
under /1.3, JSON body — and an Exchange answers it. The wire is an
Exchange (it prefixes the crate::Endpoint’s base and sends it);
mock-upcloud’s in-process FakeUpCloud is an Exchange (it hands the
same call to the same router the HTTP face uses); a test’s scripted world
is an Exchange. So a fake answering a call answers exactly the request
the account would have been sent — not a parallel spelling of it that can
drift. An Exchange never sees a base URL, so it cannot choose a cloud.
Structs§
- Over
- An
Exchangeas anUpCloudApi: the ONE place a typed call becomes a method, a path and a body.