pub struct FHIRHttpClient<CTX: Debug> { /* private fields */ }Implementations§
Source§impl<CTX: 'static + Send + Sync + Debug + HttpRequestHeaders> FHIRHttpClient<CTX>
impl<CTX: 'static + Send + Sync + Debug + HttpRequestHeaders> FHIRHttpClient<CTX>
pub fn new(state: FHIRHttpState) -> Self
Trait Implementations§
Source§impl<CTX: 'static + Send + Sync + Debug + HttpRequestHeaders> FHIRClient<CTX, OperationOutcomeError> for FHIRHttpClient<CTX>
impl<CTX: 'static + Send + Sync + Debug + HttpRequestHeaders> FHIRClient<CTX, OperationOutcomeError> for FHIRHttpClient<CTX>
async fn request( &self, ctx: CTX, request: FHIRRequest, ) -> Result<FHIRResponse, OperationOutcomeError>
async fn capabilities( &self, ctx: CTX, ) -> Result<CapabilityStatement, OperationOutcomeError>
async fn search_system( &self, ctx: CTX, parameters: ParsedParameters, ) -> Result<Bundle, OperationOutcomeError>
async fn search_type( &self, ctx: CTX, resource_type: ResourceType, parameters: ParsedParameters, ) -> Result<Bundle, OperationOutcomeError>
async fn create( &self, ctx: CTX, resource_type: ResourceType, resource: Resource, ) -> Result<Resource, OperationOutcomeError>
async fn update( &self, ctx: CTX, resource_type: ResourceType, id: String, resource: Resource, ) -> Result<Resource, OperationOutcomeError>
async fn conditional_update( &self, ctx: CTX, resource_type: ResourceType, parameters: ParsedParameters, resource: Resource, ) -> Result<Resource, OperationOutcomeError>
async fn patch( &self, ctx: CTX, resource_type: ResourceType, id: String, patch: Patch, ) -> Result<Resource, OperationOutcomeError>
async fn read( &self, ctx: CTX, resource_type: ResourceType, id: String, ) -> Result<Option<Resource>, OperationOutcomeError>
async fn vread( &self, ctx: CTX, resource_type: ResourceType, id: String, version_id: String, ) -> Result<Option<Resource>, OperationOutcomeError>
async fn delete_instance( &self, ctx: CTX, resource_type: ResourceType, id: String, ) -> Result<(), OperationOutcomeError>
async fn delete_type( &self, ctx: CTX, resource_type: ResourceType, parameters: ParsedParameters, ) -> Result<(), OperationOutcomeError>
async fn delete_system( &self, ctx: CTX, parameters: ParsedParameters, ) -> Result<(), OperationOutcomeError>
async fn history_system( &self, ctx: CTX, parameters: ParsedParameters, ) -> Result<Bundle, OperationOutcomeError>
async fn history_type( &self, ctx: CTX, resource_type: ResourceType, parameters: ParsedParameters, ) -> Result<Bundle, OperationOutcomeError>
async fn history_instance( &self, ctx: CTX, resource_type: ResourceType, id: String, parameters: ParsedParameters, ) -> Result<Bundle, OperationOutcomeError>
async fn invoke_instance( &self, ctx: CTX, resource_type: ResourceType, id: String, operation: String, parameters: Parameters, ) -> Result<Resource, OperationOutcomeError>
async fn invoke_type( &self, ctx: CTX, resource_type: ResourceType, operation: String, parameters: Parameters, ) -> Result<Resource, OperationOutcomeError>
async fn invoke_system( &self, ctx: CTX, operation: String, parameters: Parameters, ) -> Result<Resource, OperationOutcomeError>
async fn transaction( &self, ctx: CTX, bundle: Bundle, ) -> Result<Bundle, OperationOutcomeError>
async fn batch( &self, ctx: CTX, bundle: Bundle, ) -> Result<Bundle, OperationOutcomeError>
Source§impl<CTX: 'static + Send + Sync + Debug + HttpRequestHeaders> FHIRHttpExchange<CTX> for FHIRHttpClient<CTX>
impl<CTX: 'static + Send + Sync + Debug + HttpRequestHeaders> FHIRHttpExchange<CTX> for FHIRHttpClient<CTX>
Source§async fn request_with_metadata(
&self,
ctx: CTX,
request: FHIRRequest,
) -> (Option<HttpResponseMetadata>, Result<FHIRResponse, OperationOutcomeError>)
async fn request_with_metadata( &self, ctx: CTX, request: FHIRRequest, ) -> (Option<HttpResponseMetadata>, Result<FHIRResponse, OperationOutcomeError>)
Sends a FHIR interaction as
FHIRClient::request does, also
returning the status and headers of its response, or None when no
response arrived.Source§async fn send(
&self,
ctx: CTX,
method: Method,
url: &str,
) -> Result<(HttpResponseMetadata, Bytes), OperationOutcomeError>
async fn send( &self, ctx: CTX, method: Method, url: &str, ) -> Result<(HttpResponseMetadata, Bytes), OperationOutcomeError>
Sends a request that is not a FHIR interaction, such as a poll of an
asynchronous request’s status URL, to
url: absolute, or relative to
the FHIR base URL. A non-success status is a response like any other,
not an error. The configured authentication is sent only to the FHIR
base URL’s origin, so a URL taken from a response cannot carry the
credentials elsewhere. Read moreAuto Trait Implementations§
impl<CTX> !RefUnwindSafe for FHIRHttpClient<CTX>
impl<CTX> !UnwindSafe for FHIRHttpClient<CTX>
impl<CTX> Freeze for FHIRHttpClient<CTX>where
PhantomData<CTX>: Freeze,
impl<CTX> Send for FHIRHttpClient<CTX>where
PhantomData<CTX>: Send,
impl<CTX> Sync for FHIRHttpClient<CTX>where
PhantomData<CTX>: Sync,
impl<CTX> Unpin for FHIRHttpClient<CTX>where
PhantomData<CTX>: Unpin,
impl<CTX> UnsafeUnpin for FHIRHttpClient<CTX>where
PhantomData<CTX>: UnsafeUnpin,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<T> ErasedDestructor for Twhere
T: 'static,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more