pub struct FhirNotificationConfig {
pub pubsub_topic: Option<String>,
pub send_full_resource: Option<bool>,
pub send_previous_resource_on_delete: Option<bool>,
}
Expand description
Contains the configuration for FHIR notifications.
This type is not used in any activity, and only used as part of another schema.
Fields§
§pubsub_topic: Option<String>
The Pub/Sub topic that notifications of changes are published on. Supplied by the client. The notification is a PubsubMessage
with the following fields: * PubsubMessage.Data
contains the resource name. * PubsubMessage.MessageId
is the ID of this notification. It is guaranteed to be unique within the topic. * PubsubMessage.PublishTime
is the time when the message was published. Note that notifications are only sent if the topic is non-empty. Topic names must be scoped to a project. The Cloud Healthcare API service account, service-@gcp-sa-healthcare.iam.gserviceaccount.com, must have publisher permissions on the given Pub/Sub topic. Not having adequate permissions causes the calls that send notifications to fail (https://cloud.google.com/healthcare-api/docs/permissions-healthcare-api-gcp-products#dicom_fhir_and_hl7v2_store_cloud_pubsub_permissions). If a notification can’t be published to Pub/Sub, errors are logged to Cloud Logging. For more information, see Viewing error logs in Cloud Logging.
send_full_resource: Option<bool>
Whether to send full FHIR resource to this Pub/Sub topic.
send_previous_resource_on_delete: Option<bool>
Whether to send full FHIR resource to this Pub/Sub topic for deleting FHIR resource. Note that setting this to true does not guarantee that all previous resources will be sent in the format of full FHIR resource. When a resource change is too large or during heavy traffic, only the resource name will be sent. Clients should always check the “payloadType” label from a Pub/Sub message to determine whether it needs to fetch the full previous resource as a separate operation.
Trait Implementations§
source§impl Clone for FhirNotificationConfig
impl Clone for FhirNotificationConfig
source§fn clone(&self) -> FhirNotificationConfig
fn clone(&self) -> FhirNotificationConfig
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for FhirNotificationConfig
impl Debug for FhirNotificationConfig
source§impl Default for FhirNotificationConfig
impl Default for FhirNotificationConfig
source§fn default() -> FhirNotificationConfig
fn default() -> FhirNotificationConfig
source§impl<'de> Deserialize<'de> for FhirNotificationConfig
impl<'de> Deserialize<'de> for FhirNotificationConfig
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
source§impl Serialize for FhirNotificationConfig
impl Serialize for FhirNotificationConfig
impl Part for FhirNotificationConfig
Auto Trait Implementations§
impl Freeze for FhirNotificationConfig
impl RefUnwindSafe for FhirNotificationConfig
impl Send for FhirNotificationConfig
impl Sync for FhirNotificationConfig
impl Unpin for FhirNotificationConfig
impl UnwindSafe for FhirNotificationConfig
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§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>
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>
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