pub struct ExtractedMarkers {
pub setup: Option<String>,
pub assertions: Option<String>,
pub expect: Option<String>,
pub visible_content: String,
}Expand description
Result of extracting markers from code block content.
Fields§
§setup: Option<String>Setup content from <!--SETUP--> marker
assertions: Option<String>Assertions from <!--ASSERT--> marker
expect: Option<String>Expected output from <!--EXPECT--> marker
visible_content: StringThe visible content (with all markers removed)
Implementations§
Source§impl ExtractedMarkers
impl ExtractedMarkers
Sourcepub fn validation_content(&self) -> String
pub fn validation_content(&self) -> String
Get content for validation (with @@ prefix stripped but lines kept).
This returns visible_content with the @@ prefix removed from each line,
but the line content is preserved (unlike output which removes entire lines).
Trait Implementations§
Source§impl Clone for ExtractedMarkers
impl Clone for ExtractedMarkers
Source§fn clone(&self) -> ExtractedMarkers
fn clone(&self) -> ExtractedMarkers
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 ExtractedMarkers
impl Debug for ExtractedMarkers
Source§impl Default for ExtractedMarkers
impl Default for ExtractedMarkers
Source§fn default() -> ExtractedMarkers
fn default() -> ExtractedMarkers
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for ExtractedMarkers
impl RefUnwindSafe for ExtractedMarkers
impl Send for ExtractedMarkers
impl Sync for ExtractedMarkers
impl Unpin for ExtractedMarkers
impl UnwindSafe for ExtractedMarkers
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> 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