pub struct ServiceModel {
pub package: String,
pub service: String,
pub source_file: String,
pub default_task_queue: Option<String>,
pub workflows: Vec<WorkflowModel>,
pub signals: Vec<SignalModel>,
pub queries: Vec<QueryModel>,
pub updates: Vec<UpdateModel>,
pub activities: Vec<ActivityModel>,
}Expand description
One Temporal-bearing proto service after parsing + validation.
Fields§
§package: StringFully-qualified proto package, e.g. "jobs.v1".
service: StringService name from the proto, e.g. "JobService".
source_file: StringSource .proto file path as protoc saw it.
default_task_queue: Option<String>temporal.v1.service.task_queue if the service carries the annotation.
Used as the default task_queue when a workflow does not override it.
workflows: Vec<WorkflowModel>§signals: Vec<SignalModel>§queries: Vec<QueryModel>§updates: Vec<UpdateModel>§activities: Vec<ActivityModel>Trait Implementations§
Auto Trait Implementations§
impl Freeze for ServiceModel
impl RefUnwindSafe for ServiceModel
impl Send for ServiceModel
impl Sync for ServiceModel
impl Unpin for ServiceModel
impl UnsafeUnpin for ServiceModel
impl UnwindSafe for ServiceModel
Blanket Implementations§
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