Struct Contract

Source
pub struct Contract {
Show 41 fields pub id: Option<Id>, pub meta: Option<Meta>, pub implicit_rules: Option<UriDt>, pub language: Option<CodeDt>, pub text: Option<Narrative>, pub contained: Option<Vec<AnyResource>>, pub extension: Option<Vec<Extension>>, pub modifier_extension: Option<Vec<Extension>>, pub identifier: Option<Vec<Identifier>>, pub url: Option<UriDt>, pub version: Option<StringDt>, pub status: Option<CodeDt>, pub legal_state: Option<CodeableConcept>, pub instantiates_canonical: Option<Reference>, pub instantiates_uri: Option<UriDt>, pub content_derivative: Option<CodeableConcept>, pub issued: Option<DateTimeDt>, pub applies: Option<Period>, pub expiration_type: Option<CodeableConcept>, pub subject: Option<Vec<Reference>>, pub authority: Option<Vec<Reference>>, pub domain: Option<Vec<Reference>>, pub site: Option<Vec<Reference>>, pub name: Option<StringDt>, pub title: Option<StringDt>, pub subtitle: Option<StringDt>, pub alias: Option<Vec<StringDt>>, pub author: Option<Reference>, pub scope: Option<CodeableConcept>, pub topic: Option<Reference>, pub type_: Option<CodeableConcept>, pub sub_type: Option<Vec<CodeableConcept>>, pub content_definition: Option<ContractContentDefinitionBackboneElement>, pub term: Option<Vec<ContractTermBackboneElement>>, pub supporting_info: Option<Vec<Reference>>, pub relevant_history: Option<Vec<Reference>>, pub signer: Option<Vec<ContractSignerBackboneElement>>, pub friendly: Option<Vec<ContractFriendlyBackboneElement>>, pub legal: Option<Vec<ContractLegalBackboneElement>>, pub rule: Option<Vec<ContractRuleBackboneElement>>, pub legally_binding: Option<Reference>,
}

Fields§

§id: Option<Id>

Logical id of this artifact

§meta: Option<Meta>

Metadata about the resource

§implicit_rules: Option<UriDt>

A set of rules under which this content was created

§language: Option<CodeDt>

Language of the resource content

§text: Option<Narrative>

Text summary of the resource, for human interpretation

§contained: Option<Vec<AnyResource>>

Contained, inline Resources

§extension: Option<Vec<Extension>>

Additional content defined by implementations

§modifier_extension: Option<Vec<Extension>>

Extensions that cannot be ignored

§identifier: Option<Vec<Identifier>>

Contract number

§url: Option<UriDt>

Basal definition

§version: Option<StringDt>

Business edition

§status: Option<CodeDt>

amended | appended | cancelled | disputed | entered-in-error | executable +

§legal_state: Option<CodeableConcept>

Negotiation status

§instantiates_canonical: Option<Reference>

Source Contract Definition

§instantiates_uri: Option<UriDt>

External Contract Definition

§content_derivative: Option<CodeableConcept>

Content derived from the basal information

§issued: Option<DateTimeDt>

When this Contract was issued

§applies: Option<Period>

Effective time

§expiration_type: Option<CodeableConcept>

Contract cessation cause

§subject: Option<Vec<Reference>>

Contract Target Entity

§authority: Option<Vec<Reference>>

Authority under which this Contract has standing

§domain: Option<Vec<Reference>>

A sphere of control governed by an authoritative jurisdiction, organization, or person

§site: Option<Vec<Reference>>

Specific Location

§name: Option<StringDt>

Computer friendly designation

§title: Option<StringDt>

Human Friendly name

§subtitle: Option<StringDt>

Subordinate Friendly name

§alias: Option<Vec<StringDt>>

Acronym or short name

§author: Option<Reference>

Source of Contract

§scope: Option<CodeableConcept>

Range of Legal Concerns

§topic: Option<Reference>

Focus of contract interest

§type_: Option<CodeableConcept>

Legal instrument category

§sub_type: Option<Vec<CodeableConcept>>

Subtype within the context of type

§content_definition: Option<ContractContentDefinitionBackboneElement>

Contract precursor content

§term: Option<Vec<ContractTermBackboneElement>>

Contract Term List

§supporting_info: Option<Vec<Reference>>

Extra Information

§relevant_history: Option<Vec<Reference>>

Key event in Contract History

§signer: Option<Vec<ContractSignerBackboneElement>>

Contract Signatory

§friendly: Option<Vec<ContractFriendlyBackboneElement>>

Contract Friendly Language

§legal: Option<Vec<ContractLegalBackboneElement>>

Contract Legal Language

§rule: Option<Vec<ContractRuleBackboneElement>>

Computable Contract Language

§legally_binding: Option<Reference>

Binding Contract

Implementations§

Source§

impl Contract

Source

pub fn set_identifier(self, v: Vec<Identifier>) -> Self

Source

pub fn add_identifier(self, v: Identifier) -> Self

Source

pub fn set_url<T: Into<UriDt>>(self, v: T) -> Self

Source

pub fn set_version<T: Into<StringDt>>(self, v: T) -> Self

Source

pub fn set_status<T: Into<CodeDt>>(self, v: T) -> Self

Source

pub fn set_instantiates_canonical(self, v: Reference) -> Self

Source

pub fn set_instantiates_uri<T: Into<UriDt>>(self, v: T) -> Self

Source

pub fn set_content_derivative(self, v: CodeableConcept) -> Self

Source

pub fn set_issued<T: Into<DateTimeDt>>(self, v: T) -> Self

Source

pub fn set_applies(self, v: Period) -> Self

Source

pub fn set_expiration_type(self, v: CodeableConcept) -> Self

Source

pub fn set_subject(self, v: Vec<Reference>) -> Self

Source

pub fn add_subject(self, v: Reference) -> Self

Source

pub fn set_authority(self, v: Vec<Reference>) -> Self

Source

pub fn add_authority(self, v: Reference) -> Self

Source

pub fn set_domain(self, v: Vec<Reference>) -> Self

Source

pub fn add_domain(self, v: Reference) -> Self

Source

pub fn set_site(self, v: Vec<Reference>) -> Self

Source

pub fn add_site(self, v: Reference) -> Self

Source

pub fn set_name<T: Into<StringDt>>(self, v: T) -> Self

Source

pub fn set_title<T: Into<StringDt>>(self, v: T) -> Self

Source

pub fn set_subtitle<T: Into<StringDt>>(self, v: T) -> Self

Source

pub fn set_alias(self, v: Vec<StringDt>) -> Self

Source

pub fn add_alias<T: Into<StringDt>>(self, v: T) -> Self

Source

pub fn set_author(self, v: Reference) -> Self

Source

pub fn set_scope(self, v: CodeableConcept) -> Self

Source

pub fn set_topic(self, v: Reference) -> Self

Source

pub fn set_type_(self, v: CodeableConcept) -> Self

Source

pub fn set_sub_type(self, v: Vec<CodeableConcept>) -> Self

Source

pub fn add_sub_type(self, v: CodeableConcept) -> Self

Source

pub fn set_content_definition( self, v: ContractContentDefinitionBackboneElement, ) -> Self

Source

pub fn set_term(self, v: Vec<ContractTermBackboneElement>) -> Self

Source

pub fn add_term(self, v: ContractTermBackboneElement) -> Self

Source

pub fn set_supporting_info(self, v: Vec<Reference>) -> Self

Source

pub fn add_supporting_info(self, v: Reference) -> Self

Source

pub fn set_relevant_history(self, v: Vec<Reference>) -> Self

Source

pub fn add_relevant_history(self, v: Reference) -> Self

Source

pub fn set_signer(self, v: Vec<ContractSignerBackboneElement>) -> Self

Source

pub fn add_signer(self, v: ContractSignerBackboneElement) -> Self

Source

pub fn set_friendly(self, v: Vec<ContractFriendlyBackboneElement>) -> Self

Source

pub fn add_friendly(self, v: ContractFriendlyBackboneElement) -> Self

Source

pub fn set_rule(self, v: Vec<ContractRuleBackboneElement>) -> Self

Source

pub fn add_rule(self, v: ContractRuleBackboneElement) -> Self

Source

pub fn set_legally_binding(self, v: Reference) -> Self

Trait Implementations§

Source§

impl Clone for Contract

Source§

fn clone(&self) -> Contract

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for Contract

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Default for Contract

Source§

fn default() -> Contract

Returns the “default value” for a type. Read more
Source§

impl<'de> Deserialize<'de> for Contract

Source§

fn deserialize<De>(deserializer: De) -> Result<Self>
where De: Deserializer<'de>,

Source§

impl DomainResource for Contract

Source§

impl Resource for Contract

Source§

fn id(&self) -> &Option<String>

Source§

fn set_id<T: Into<Id>>(self, id: T) -> Self

Source§

fn meta(&self) -> &Option<Meta>

Source§

fn set_meta(self, meta: Meta) -> Self

Source§

impl Serialize for Contract

Source§

fn serialize<Ser: Serializer>(&self, serializer: Ser) -> Result<()>

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more