pub struct ParameterDefinitionBuilder { /* private fields */ }Expand description
Builder for ParameterDefinitionInner.
Implementations§
Source§impl ParameterDefinitionBuilder
impl ParameterDefinitionBuilder
Sourcepub fn id(self, value: String) -> ParameterDefinitionBuilder
pub fn id(self, value: String) -> ParameterDefinitionBuilder
Unique id for inter-element referencing
Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.
Sourcepub fn extension(self, value: Vec<Extension>) -> ParameterDefinitionBuilder
pub fn extension(self, value: Vec<Extension>) -> ParameterDefinitionBuilder
Additional content defined by implementations
May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and managable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.
There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.
Sourcepub fn name(self, value: String) -> ParameterDefinitionBuilder
pub fn name(self, value: String) -> ParameterDefinitionBuilder
Name used to access the parameter value
The name of the parameter used to allow access to the value of the parameter in evaluation contexts.
Sourcepub fn name_ext(self, value: FieldExtension) -> ParameterDefinitionBuilder
pub fn name_ext(self, value: FieldExtension) -> ParameterDefinitionBuilder
Extension field.
Sourcepub fn use(self, value: OperationParameterUse) -> ParameterDefinitionBuilder
pub fn use(self, value: OperationParameterUse) -> ParameterDefinitionBuilder
ParameterUse; in | out
Whether the parameter is input or output for the module.
Sourcepub fn use_ext(self, value: FieldExtension) -> ParameterDefinitionBuilder
pub fn use_ext(self, value: FieldExtension) -> ParameterDefinitionBuilder
Extension field.
Sourcepub fn min(self, value: i32) -> ParameterDefinitionBuilder
pub fn min(self, value: i32) -> ParameterDefinitionBuilder
Minimum cardinality
The minimum number of times this parameter SHALL appear in the request or response.
Sourcepub fn min_ext(self, value: FieldExtension) -> ParameterDefinitionBuilder
pub fn min_ext(self, value: FieldExtension) -> ParameterDefinitionBuilder
Extension field.
Sourcepub fn max(self, value: String) -> ParameterDefinitionBuilder
pub fn max(self, value: String) -> ParameterDefinitionBuilder
*Maximum cardinality (a number of )
The maximum number of times this element is permitted to appear in the request or response.
Sourcepub fn max_ext(self, value: FieldExtension) -> ParameterDefinitionBuilder
pub fn max_ext(self, value: FieldExtension) -> ParameterDefinitionBuilder
Extension field.
Sourcepub fn documentation(self, value: String) -> ParameterDefinitionBuilder
pub fn documentation(self, value: String) -> ParameterDefinitionBuilder
A brief description of the parameter
A brief discussion of what the parameter is for and how it is used by the module.
Sourcepub fn documentation_ext(
self,
value: FieldExtension,
) -> ParameterDefinitionBuilder
pub fn documentation_ext( self, value: FieldExtension, ) -> ParameterDefinitionBuilder
Extension field.
Sourcepub fn type(self, value: FHIRTypes) -> ParameterDefinitionBuilder
pub fn type(self, value: FHIRTypes) -> ParameterDefinitionBuilder
FHIRTypes; What type of value
The type of the parameter.
Sourcepub fn type_ext(self, value: FieldExtension) -> ParameterDefinitionBuilder
pub fn type_ext(self, value: FieldExtension) -> ParameterDefinitionBuilder
Extension field.
Sourcepub fn profile(self, value: String) -> ParameterDefinitionBuilder
pub fn profile(self, value: String) -> ParameterDefinitionBuilder
What profile the value is expected to be
If specified, this indicates a profile that the input data must conform to, or that the output data will conform to.
Sourcepub fn profile_ext(self, value: FieldExtension) -> ParameterDefinitionBuilder
pub fn profile_ext(self, value: FieldExtension) -> ParameterDefinitionBuilder
Extension field.
Sourcepub fn build_inner(self) -> Result<ParameterDefinitionInner, BuilderError>
pub fn build_inner(self) -> Result<ParameterDefinitionInner, BuilderError>
Source§impl ParameterDefinitionBuilder
impl ParameterDefinitionBuilder
Sourcepub fn build(self) -> Result<ParameterDefinition, BuilderError>
pub fn build(self) -> Result<ParameterDefinition, BuilderError>
Finalize building ParameterDefinition.