pub struct ExtractedContent {
pub content: String,
pub language: ScriptLanguage,
pub delimiter: Option<String>,
pub byte_range: Range<usize>,
pub content_range: Option<Range<usize>>,
pub quoted: bool,
pub heredoc_type: Option<HeredocType>,
pub target_command: Option<String>,
}Expand description
Extracted content from a heredoc or inline script.
Fields§
§content: StringThe script content (body of heredoc or inline argument).
language: ScriptLanguageDetected or inferred language.
delimiter: Option<String>Heredoc delimiter (e.g., “EOF”), if applicable.
byte_range: Range<usize>Byte range in the original command.
content_range: Option<Range<usize>>Byte range of the extracted content inside the original command, if known.
For inline scripts and here-strings this is the exact content span. For heredoc bodies, this represents the raw body range (may not map cleanly if indentation or CRLF normalization occurred).
quoted: boolWhether the delimiter was quoted (suppresses expansion).
heredoc_type: Option<HeredocType>Type of heredoc (if applicable).
target_command: Option<String>The command that receives this heredoc (e.g., “cat”, “bash”). Used to determine if content should be evaluated as executable.
Trait Implementations§
Source§impl Clone for ExtractedContent
impl Clone for ExtractedContent
Source§fn clone(&self) -> ExtractedContent
fn clone(&self) -> ExtractedContent
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 ExtractedContent
impl RefUnwindSafe for ExtractedContent
impl Send for ExtractedContent
impl Sync for ExtractedContent
impl Unpin for ExtractedContent
impl UnsafeUnpin for ExtractedContent
impl UnwindSafe for ExtractedContent
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<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, _span: NoopSpan) -> Self
fn instrument(self, _span: NoopSpan) -> Self
Instruments this future with a span (no-op when disabled).
Source§fn in_current_span(self) -> Self
fn in_current_span(self) -> Self
Instruments this future with the current span (no-op when disabled).
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more