pub struct FHIRHttpClient<CTX> { /* private fields */ }Implementations§
Source§impl<CTX: 'static + Send + Sync> FHIRHttpClient<CTX>
impl<CTX: 'static + Send + Sync> FHIRHttpClient<CTX>
pub fn new(state: FHIRHttpState) -> Self
Trait Implementations§
Source§impl<CTX: 'static + Send + Sync> FHIRClient<CTX, OperationOutcomeError> for FHIRHttpClient<CTX>
impl<CTX: 'static + Send + Sync> 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>
Auto Trait Implementations§
impl<CTX> Freeze for FHIRHttpClient<CTX>
impl<CTX> !RefUnwindSafe for FHIRHttpClient<CTX>
impl<CTX> Send for FHIRHttpClient<CTX>where
CTX: Send,
impl<CTX> Sync for FHIRHttpClient<CTX>where
CTX: Sync,
impl<CTX> Unpin for FHIRHttpClient<CTX>where
CTX: Unpin,
impl<CTX> !UnwindSafe for FHIRHttpClient<CTX>
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> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> 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