Trait space_rx::ApiRequest [−][src]
pub trait ApiRequest {
type Output: DeserializeOwned;
fn endpoint(&self) -> String;
fn params(&self) -> Option<HashMap<&str, String>> { ... }
}Behavior for sendable SpaceX API requests.
Associated Types
type Output: DeserializeOwned
Required Methods
Provided Methods
Implementors
impl ApiRequest for AllCapsulesRequest type Output = Vec<Capsule>;impl<'a> ApiRequest for CapsuleRequest<'a> type Output = Capsule;impl ApiRequest for InfoRequest type Output = CompanyInfo;impl ApiRequest for RoadsterInfoRequest type Output = RoadsterInfo;impl<'a> ApiRequest for CompanyHistoryRequest<'a> type Output = Vec<HistoricalEvent>;impl ApiRequest for AllLaunchpadsRequest type Output = Vec<Launchpad>;impl<'a> ApiRequest for LaunchpadRequest<'a> type Output = Launchpad;impl<'a> ApiRequest for AllLaunchesRequest<'a> type Output = Vec<Launch>;impl<'a> ApiRequest for PastLaunchesRequest<'a> type Output = Vec<Launch>;impl ApiRequest for LatestLaunchRequest type Output = Launch;impl ApiRequest for NextLaunchRequest type Output = Launch;impl<'a> ApiRequest for UpcomingLaunchesRequest<'a> type Output = Vec<Launch>;impl<'a> ApiRequest for AllCapsulePartsRequest<'a> type Output = Vec<CapsulePart>;impl<'a> ApiRequest for CapsulePartRequest<'a> type Output = CapsulePart;impl<'a> ApiRequest for AllCorePartsRequest<'a> type Output = Vec<CorePart>;impl<'a> ApiRequest for CorePartRequest<'a> type Output = CorePart;impl ApiRequest for AllRocketsRequest type Output = Vec<Rocket>;impl<'a> ApiRequest for RocketRequest<'a> type Output = Rocket;