#[non_exhaustive]pub struct PartyRoleSpecificationCreate {Show 21 fields
pub name: String,
pub id: Option<String>,
pub description: Option<String>,
pub version: Option<String>,
pub is_bundle: Option<bool>,
pub last_update: Option<Timestamp>,
pub lifecycle_status: Option<String>,
pub status: Option<String>,
pub spec_characteristic: Option<Vec<CharacteristicSpecification>>,
pub entity_spec_relationship: Option<Vec<EntitySpecificationRelationship>>,
pub agreement_specification: Option<Vec<Ref<AgreementSpecification>>>,
pub permission_specification_set: Option<Vec<Ref<PermissionSpecificationSet>>>,
pub constraint: Option<Vec<Ref<Constraint>>>,
pub attachment: Option<Vec<Attachment>>,
pub target_entity_schema: Option<TargetEntitySchema>,
pub related_party: Option<Vec<RelatedParty>>,
pub valid_for: Option<TimePeriod>,
pub at_type: String,
pub at_base_type: Option<String>,
pub at_schema_location: Option<String>,
pub extensions: Extensions,
}party only.Expand description
Body of a POST /partyRoleSpecification — the v5
PartyRoleSpecification_FVO.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.name: StringName of the specification. Required on create.
id: Option<String>Client-supplied identifier, where the server permits one.
description: Option<String>Narrative description.
version: Option<String>Version of the specification.
is_bundle: Option<bool>Whether the specification bundles others.
last_update: Option<Timestamp>When the specification was last changed.
lifecycle_status: Option<String>Where the specification is in its own lifecycle.
status: Option<String>Lifecycle status of the specification.
spec_characteristic: Option<Vec<CharacteristicSpecification>>Characteristics a role built from this carries.
entity_spec_relationship: Option<Vec<EntitySpecificationRelationship>>Links to other entity specifications.
agreement_specification: Option<Vec<Ref<AgreementSpecification>>>Agreement specifications governing roles of this kind — TMF651.
permission_specification_set: Option<Vec<Ref<PermissionSpecificationSet>>>Permission sets granted to roles of this kind — TMF672.
constraint: Option<Vec<Ref<Constraint>>>Constraints on the specification.
attachment: Option<Vec<Attachment>>Documents attached to the specification.
target_entity_schema: Option<TargetEntitySchema>Schema describing the entity this specification targets.
Parties related to the specification.
valid_for: Option<TimePeriod>Period during which the specification is valid.
at_type: StringThe @type discriminator naming this entity’s class.
Empty when the payload declared none — TMF630 v5 marks it
required, but servers omit it and so do TM Forum’s own examples.
An absent discriminator stays absent, so relaying a payload does
not silently add a member to it; anything this crate builds
carries the class name. Read it through
type_name, which resolves the empty case.
at_base_type: Option<String>The @baseType, naming the supertype where this class is sub-typed.
at_schema_location: Option<String>A URI to a JSON-Schema file defining additional attributes.
extensions: ExtensionsMembers not covered by the typed model, kept in document order.
See the crate documentation for the round-trip guarantee this underwrites.
Implementations§
Source§impl PartyRoleSpecificationCreate
impl PartyRoleSpecificationCreate
Sourcepub fn builder() -> PartyRoleSpecificationCreateBuilder
pub fn builder() -> PartyRoleSpecificationCreateBuilder
Create an instance of PartyRoleSpecificationCreate using the builder syntax
Trait Implementations§
Source§impl Clone for PartyRoleSpecificationCreate
impl Clone for PartyRoleSpecificationCreate
Source§impl Debug for PartyRoleSpecificationCreate
impl Debug for PartyRoleSpecificationCreate
Source§impl<'de> Deserialize<'de> for PartyRoleSpecificationCreate
impl<'de> Deserialize<'de> for PartyRoleSpecificationCreate
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 JsonSchema for PartyRoleSpecificationCreate
impl JsonSchema for PartyRoleSpecificationCreate
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
$ref keyword. Read more