pub struct InputReference {
pub name: String,
pub full_path: String,
pub location: SourceLocation,
pub context: BlockContext,
pub reference_type: ReferenceType,
}Expand description
A reference to an input, variable, or other construct in the runbook
Fields§
§name: StringThe name being referenced (e.g., “api_key” in input.api_key)
full_path: StringFull path as it appears (e.g., “input.api_key”)
location: SourceLocationLocation where the reference appears
context: BlockContextContext where the reference is used
reference_type: ReferenceTypeType of reference
Implementations§
Source§impl InputReference
impl InputReference
Sourcepub fn new(
name: String,
full_path: String,
location: SourceLocation,
context: BlockContext,
reference_type: ReferenceType,
) -> Self
pub fn new( name: String, full_path: String, location: SourceLocation, context: BlockContext, reference_type: ReferenceType, ) -> Self
Create a new input reference
Sourcepub fn input(
name: String,
location: SourceLocation,
context: BlockContext,
) -> Self
pub fn input( name: String, location: SourceLocation, context: BlockContext, ) -> Self
Create an input reference (input.*)
Sourcepub fn variable(
name: String,
location: SourceLocation,
context: BlockContext,
) -> Self
pub fn variable( name: String, location: SourceLocation, context: BlockContext, ) -> Self
Create a variable reference (var.* or variable.*)
Sourcepub fn flow_input(
name: String,
location: SourceLocation,
context: BlockContext,
) -> Self
pub fn flow_input( name: String, location: SourceLocation, context: BlockContext, ) -> Self
Create a flow input reference (flow.*)
Sourcepub fn action(
name: String,
location: SourceLocation,
context: BlockContext,
) -> Self
pub fn action( name: String, location: SourceLocation, context: BlockContext, ) -> Self
Create an action reference (action.*)
Sourcepub fn signer(
name: String,
location: SourceLocation,
context: BlockContext,
) -> Self
pub fn signer( name: String, location: SourceLocation, context: BlockContext, ) -> Self
Create a signer reference (signer.*)
Trait Implementations§
Source§impl Clone for InputReference
impl Clone for InputReference
Source§fn clone(&self) -> InputReference
fn clone(&self) -> InputReference
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 moreAuto Trait Implementations§
impl Freeze for InputReference
impl RefUnwindSafe for InputReference
impl Send for InputReference
impl Sync for InputReference
impl Unpin for InputReference
impl UnsafeUnpin for InputReference
impl UnwindSafe for InputReference
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