Struct odata_simple_client::GetRequest [−][src]
pub struct GetRequest { /* fields omitted */ }
Expand description
Request a single resource by ID
Implementations
Constructs a GET request for <DataSource Path>/resource_type(id)
Must be DataSource::fetch
ed using a DataSource
to retrieve data.
Change format of the returned data.
Can be either Format::Json
or Format::Xml
Expand specific relations of the returned object, if possible.
For the Folketinget API for example, you can expand the DokumentAktør
field of a Dokument
, to simultaneously retrieve information about the document authors, instead of having to do two separate lookups for the DokumentAktør
relation and then the actual Aktør
.
Auto Trait Implementations
impl RefUnwindSafe for GetRequest
impl Send for GetRequest
impl Sync for GetRequest
impl Unpin for GetRequest
impl UnwindSafe for GetRequest
Blanket Implementations
Mutably borrows from an owned value. Read more
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