#[non_exhaustive]pub struct ServiceCreate {Show 30 fields
pub state: ServiceState,
pub service_specification: Ref<ServiceSpecification>,
pub id: Option<String>,
pub name: Option<String>,
pub description: Option<String>,
pub category: Option<String>,
pub service_type: Option<String>,
pub is_service_enabled: Option<bool>,
pub is_bundle: Option<bool>,
pub is_stateful: Option<bool>,
pub has_started: Option<bool>,
pub start_mode: Option<String>,
pub start_date: Option<Timestamp>,
pub end_date: Option<Timestamp>,
pub feature: Option<Vec<Feature>>,
pub service_characteristic: Option<Vec<Characteristic>>,
pub service_relationship: Option<Vec<ServiceRelationship>>,
pub supporting_service: Option<Vec<Service>>,
pub supporting_resource: Option<Vec<Ref<Resource>>>,
pub related_entity: Option<Vec<RelatedEntity>>,
pub service_order_item: Option<Vec<RelatedServiceOrderItem>>,
pub place: Option<Vec<RelatedPlace>>,
pub related_party: Option<Vec<RelatedParty>>,
pub external_identifier: Option<Vec<ExternalIdentifier>>,
pub intent: Option<Ref<Intent>>,
pub note: Option<Vec<Note>>,
pub at_type: String,
pub at_base_type: Option<String>,
pub at_schema_location: Option<String>,
pub extensions: Extensions,
}service only.Expand description
Body of a POST /service — the v5 Service_FVO.
state and serviceSpecification are required; operatingStatus and
serviceDate are absent, being the network’s to report rather than the
client’s to assert.
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.state: ServiceStateLifecycle state the service starts in. Required on create.
service_specification: Ref<ServiceSpecification>The specification this service instantiates. Required on create.
id: Option<String>Client-supplied identifier, where the server permits one.
name: Option<String>Name the service is known by.
description: Option<String>Narrative description.
category: Option<String>Category the service falls in.
service_type: Option<String>Kind of service.
is_service_enabled: Option<bool>Whether the service is able to serve traffic.
is_bundle: Option<bool>Whether the service bundles others.
is_stateful: Option<bool>Whether the service retains state.
has_started: Option<bool>Whether the service has begun operating.
start_mode: Option<String>How the service is started.
start_date: Option<Timestamp>When the service starts.
end_date: Option<Timestamp>When the service ends.
feature: Option<Vec<Feature>>Configurable features of the service.
service_characteristic: Option<Vec<Characteristic>>Characteristics configuring the service.
service_relationship: Option<Vec<ServiceRelationship>>Relationships to other services.
supporting_service: Option<Vec<Service>>Services this one is built on.
supporting_resource: Option<Vec<Ref<Resource>>>Resources this service runs on.
Entities of other kinds related to this service.
service_order_item: Option<Vec<RelatedServiceOrderItem>>Order lines that acted on this service.
place: Option<Vec<RelatedPlace>>Places the service is delivered to.
Parties related to the service.
external_identifier: Option<Vec<ExternalIdentifier>>Identifiers for the service in external systems.
intent: Option<Ref<Intent>>Intent governing the service.
note: Option<Vec<Note>>Free-form notes.
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 ServiceCreate
impl ServiceCreate
Sourcepub fn builder() -> ServiceCreateBuilder
pub fn builder() -> ServiceCreateBuilder
Create an instance of ServiceCreate using the builder syntax
Trait Implementations§
Source§impl Clone for ServiceCreate
impl Clone for ServiceCreate
Source§impl Debug for ServiceCreate
impl Debug for ServiceCreate
Source§impl<'de> Deserialize<'de> for ServiceCreate
impl<'de> Deserialize<'de> for ServiceCreate
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 ServiceCreate
impl JsonSchema for ServiceCreate
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