pub struct ActivityDeclaration {
pub name: String,
pub tier: Tier,
pub input_type: String,
pub output_type: String,
}Expand description
A validated activity declaration: the per-activity facts the generator needs.
input_type and output_type are the value type names the author wrote in
the Gleam declaration (for example OrderInput); generation resolves each to
the schemas/*.json document whose generated type carries that name.
Fields§
§name: StringThe engine-facing activity name.
tier: TierThe tier the activity runs on.
input_type: StringThe input value type name.
output_type: StringThe output value type name.
Trait Implementations§
Source§impl Clone for ActivityDeclaration
impl Clone for ActivityDeclaration
Source§fn clone(&self) -> ActivityDeclaration
fn clone(&self) -> ActivityDeclaration
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ActivityDeclaration
impl Debug for ActivityDeclaration
impl Eq for ActivityDeclaration
Source§impl PartialEq for ActivityDeclaration
impl PartialEq for ActivityDeclaration
Source§fn eq(&self, other: &ActivityDeclaration) -> bool
fn eq(&self, other: &ActivityDeclaration) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for ActivityDeclaration
Auto Trait Implementations§
impl Freeze for ActivityDeclaration
impl RefUnwindSafe for ActivityDeclaration
impl Send for ActivityDeclaration
impl Sync for ActivityDeclaration
impl Unpin for ActivityDeclaration
impl UnsafeUnpin for ActivityDeclaration
impl UnwindSafe for ActivityDeclaration
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.