pub struct ConsentConfig {
pub access_determination_log_config: Option<AccessDeterminationLogConfig>,
pub access_enforced: Option<bool>,
pub consent_header_handling: Option<ConsentHeaderHandling>,
pub enforced_admin_consents: Option<Vec<String>>,
pub version: Option<String>,
}
Expand description
Configures whether to enforce consent for the FHIR store and which consent enforcement version is being used.
This type is not used in any activity, and only used as part of another schema.
Fields§
§access_determination_log_config: Option<AccessDeterminationLogConfig>
Optional. Specifies how the server logs the consent-aware requests. If not specified, the AccessDeterminationLogConfig.LogLevel.MINIMUM
option is used.
access_enforced: Option<bool>
Optional. If set to true, when accessing FHIR resources, the consent headers will be verified against consents given by patients. See the ConsentEnforcementVersion for the supported consent headers.
consent_header_handling: Option<ConsentHeaderHandling>
Optional. Different options to configure the behaviour of the server when handling the X-Consent-Scope
header.
enforced_admin_consents: Option<Vec<String>>
The versioned names of the enforced admin Consent resource(s), in the format projects/{project_id}/locations/{location}/datasets/{dataset_id}/fhirStores/{fhir_store_id}/fhir/Consent/{resource_id}/_history/{version_id}
. For FHIR stores with disable_resource_versioning=true
, the format is projects/{project_id}/locations/{location}/datasets/{dataset_id}/fhirStores/{fhir_store_id}/fhir/Consent/{resource_id}
. This field can only be updated using ApplyAdminConsents.
version: Option<String>
Required. Specifies which consent enforcement version is being used for this FHIR store. This field can only be set once by either CreateFhirStore or UpdateFhirStore. After that, you must call ApplyConsents to change the version.
Trait Implementations§
Source§impl Clone for ConsentConfig
impl Clone for ConsentConfig
Source§fn clone(&self) -> ConsentConfig
fn clone(&self) -> ConsentConfig
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for ConsentConfig
impl Debug for ConsentConfig
Source§impl Default for ConsentConfig
impl Default for ConsentConfig
Source§fn default() -> ConsentConfig
fn default() -> ConsentConfig
Source§impl<'de> Deserialize<'de> for ConsentConfig
impl<'de> Deserialize<'de> for ConsentConfig
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 ConsentConfig
impl Serialize for ConsentConfig
impl Part for ConsentConfig
Auto Trait Implementations§
impl Freeze for ConsentConfig
impl RefUnwindSafe for ConsentConfig
impl Send for ConsentConfig
impl Sync for ConsentConfig
impl Unpin for ConsentConfig
impl UnwindSafe for ConsentConfig
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§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