pub struct StepSummary {
pub name: String,
pub size_bytes: u64,
pub content_type: String,
pub sha256: String,
pub source: ProjectionSource,
pub file_path: Option<String>,
pub content_url: String,
pub preview: String,
pub truncated: bool,
}Expand description
One step’s metadata (operator / debug plane) — GET /v1/tasks/:id/runs/:run/steps/:step, and each entry of
StepList::steps.
Fields§
§name: StringThe producing step’s name.
size_bytes: u64Byte length of the body Self::content_url serves (the exact
bytes a GET of that URL returns for this same ?path=, if any).
content_type: StringMIME type Self::content_url serves this body as
(text/markdown; charset=utf-8 when materialized-file-backed,
application/json otherwise — see the module doc’s Content-Type
rule).
sha256: StringSHA-256 hex digest of the body, matching the content endpoint’s
ETag value (sha256:<hex>, minus the sha256: prefix).
source: ProjectionSourceWhich backing produced this entry.
file_path: Option<String>Absolute filesystem path to the materialized projection file
(crate::core::projection::FileProjectionAdapter’s
ProjectionPlacement resolver’s target — byte-compat default
layout <root>/workspace/tasks/<step_id>/ctx/<name>.md), when one
exists AND this entry addresses the whole step (no ?path=
narrowing — a narrowed fragment is never file-backed). None
otherwise.
content_url: StringFetch URL for this step’s content (GET /v1/tasks/:id/runs/:run/steps/:step/content, ?path= echoed when
this entry is narrowed) — absolute (AppState.base_url-prefixed)
when the server has a configured base URL, relative otherwise.
preview: StringFirst <= 512 bytes of the body, UTF-8-boundary-safe (never splits
a multi-byte character), with a trailing … when truncated.
truncated: booltrue when Self::preview’s underlying byte count is shorter
than Self::size_bytes (the body was truncated to build the
preview).
Trait Implementations§
Source§impl Clone for StepSummary
impl Clone for StepSummary
Source§fn clone(&self) -> StepSummary
fn clone(&self) -> StepSummary
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for StepSummary
impl Debug for StepSummary
Source§impl JsonSchema for StepSummary
impl JsonSchema for StepSummary
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
$ref keyword. Read moreAuto Trait Implementations§
impl Freeze for StepSummary
impl RefUnwindSafe for StepSummary
impl Send for StepSummary
impl Sync for StepSummary
impl Unpin for StepSummary
impl UnsafeUnpin for StepSummary
impl UnwindSafe for StepSummary
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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>
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>
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