pub struct PathScript {
pub input_transforms: HashMap<String, InputTransform>,
pub path: String,
pub hash: Option<String>,
pub type: Type,
pub tag_override: Option<String>,
pub is_trigger: Option<bool>,
}Expand description
PathScript : Reference to an existing script by path. Use this when calling a previously saved script instead of writing inline code
Fields§
§input_transforms: HashMap<String, InputTransform>Map of parameter names to their values (static or JavaScript expressions). These become the script’s input arguments
path: StringPath to the script in the workspace (e.g., ‘f/scripts/send_email’)
hash: Option<String>Optional specific version hash of the script to use
type: Type§tag_override: Option<String>Override the script’s default worker group tag
is_trigger: Option<bool>If true, this script is a trigger that can start the flow
Implementations§
Source§impl PathScript
impl PathScript
Sourcepub fn new(
input_transforms: HashMap<String, InputTransform>,
path: String,
type: Type,
) -> PathScript
pub fn new( input_transforms: HashMap<String, InputTransform>, path: String, type: Type, ) -> PathScript
Reference to an existing script by path. Use this when calling a previously saved script instead of writing inline code
Trait Implementations§
Source§impl Clone for PathScript
impl Clone for PathScript
Source§fn clone(&self) -> PathScript
fn clone(&self) -> PathScript
Returns a duplicate of the value. Read more
1.0.0 · 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 PathScript
impl Debug for PathScript
Source§impl Default for PathScript
impl Default for PathScript
Source§fn default() -> PathScript
fn default() -> PathScript
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for PathScript
impl<'de> Deserialize<'de> for PathScript
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>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for PathScript
impl PartialEq for PathScript
Source§impl Serialize for PathScript
impl Serialize for PathScript
impl StructuralPartialEq for PathScript
Auto Trait Implementations§
impl Freeze for PathScript
impl RefUnwindSafe for PathScript
impl Send for PathScript
impl Sync for PathScript
impl Unpin for PathScript
impl UnwindSafe for PathScript
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