pub struct Binary(pub Box<BinaryInner>);
Expand description
A resource that represents the data of a single raw artifact as digital content accessible in its native format. A Binary resource can contain any content, whether text, image, pdf, zip archive, etc.
Binary v5.0.0
Pure binary content defined by a format other than FHIR
A resource that represents the data of a single raw artifact as digital content accessible in its native format. A Binary resource can contain any content, whether text, image, pdf, zip archive, etc.
Typically, Binary resources are used for handling content such as:
- CDA Documents (i.e. with XDS)
- PDF Documents
- Images.
Tuple Fields§
§0: Box<BinaryInner>
Implementations§
Source§impl Binary
impl Binary
Sourcepub const fn resource_type() -> ResourceType
pub const fn resource_type() -> ResourceType
Get the resource type for this FHIR resource.
Trait Implementations§
Source§impl BaseResource for Binary
impl BaseResource for Binary
Source§fn implicit_rules(&self) -> &Option<String>
fn implicit_rules(&self) -> &Option<String>
Get
implicit_rules
.Source§fn implicit_rules_mut(&mut self) -> &mut Option<String>
fn implicit_rules_mut(&mut self) -> &mut Option<String>
Get
implicit_rules
mutably.Source§fn set_implicit_rules(&mut self, value: Option<String>)
fn set_implicit_rules(&mut self, value: Option<String>)
Set
implicit_rules
.Source§fn language_mut(&mut self) -> &mut Option<String>
fn language_mut(&mut self) -> &mut Option<String>
Get
language
mutably.Source§fn set_language(&mut self, value: Option<String>)
fn set_language(&mut self, value: Option<String>)
Set
language
.Source§impl<'de> Deserialize<'de> for Binary
impl<'de> Deserialize<'de> for Binary
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<Binary, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<Binary, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl From<BinaryInner> for Binary
impl From<BinaryInner> for Binary
Source§fn from(inner: BinaryInner) -> Binary
fn from(inner: BinaryInner) -> Binary
Converts to this type from the input type.
Source§impl NamedResource for Binary
impl NamedResource for Binary
Source§const FHIR_VERSION: &'static str = "5.0.0"
const FHIR_VERSION: &'static str = "5.0.0"
The FHIR version of this resource.
Source§const TYPE: ResourceType = ResourceType::Binary
const TYPE: ResourceType = ResourceType::Binary
The ResourceType of this resouce.
Source§impl Serialize for Binary
impl Serialize for Binary
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl StructuralPartialEq for Binary
Auto Trait Implementations§
impl Freeze for Binary
impl RefUnwindSafe for Binary
impl Send for Binary
impl Sync for Binary
impl Unpin for Binary
impl UnwindSafe for Binary
Blanket Implementations§
Source§impl<R> AnyResource<FhirR5> for R
impl<R> AnyResource<FhirR5> for R
Source§const TYPE: ResourceType = const TYPE: r5::resources::ResourceType = R::TYPE;
const TYPE: ResourceType = const TYPE: r5::resources::ResourceType = R::TYPE;
ResourceType of this resource.
Source§const TYPE_STR: &'static str = const TYPE_STR: &'static str = R::TYPE.as_str();
const TYPE_STR: &'static str = const TYPE_STR: &'static str = R::TYPE.as_str();
Resource type of the resource as
&str
. Must be valid for use in URLs.Source§fn version_id(&self) -> Option<&str>
fn version_id(&self) -> Option<&str>
Get the resource’s version ID as string.
Source§fn set_version_id(&mut self, version_id: String)
fn set_version_id(&mut self, version_id: String)
Set the resource’s version ID.
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
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> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Source§impl<R, V> ResourceWrite<V> for Rwhere
R: AnyResource<V> + Serialize + Send + Sync,
V: FhirVersion,
(StatusCode, <V as FhirVersion>::OperationOutcome): Into<Error>,
impl<R, V> ResourceWrite<V> for Rwhere
R: AnyResource<V> + Serialize + Send + Sync,
V: FhirVersion,
(StatusCode, <V as FhirVersion>::OperationOutcome): Into<Error>,
Source§async fn update(
&mut self,
conditional: bool,
client: &Client<V>,
) -> Result<bool, Error>
async fn update( &mut self, conditional: bool, client: &Client<V>, ) -> Result<bool, Error>
Update the current version of the resource on the server. Returns
whether the resource was created.