pub struct A;Expand description
The A namespace — static factory methods for artifact composition.
Implementations§
Source§impl A
impl A
Sourcepub fn output(
name: impl Into<String>,
mime_type: impl Into<String>,
description: impl Into<String>,
) -> ArtifactComposite
pub fn output( name: impl Into<String>, mime_type: impl Into<String>, description: impl Into<String>, ) -> ArtifactComposite
Declare an artifact that this agent produces.
Sourcepub fn input(
name: impl Into<String>,
mime_type: impl Into<String>,
description: impl Into<String>,
) -> ArtifactComposite
pub fn input( name: impl Into<String>, mime_type: impl Into<String>, description: impl Into<String>, ) -> ArtifactComposite
Declare an artifact that this agent consumes.
Sourcepub fn json_output(
name: impl Into<String>,
description: impl Into<String>,
) -> ArtifactComposite
pub fn json_output( name: impl Into<String>, description: impl Into<String>, ) -> ArtifactComposite
Declare a JSON artifact output.
Sourcepub fn json_input(
name: impl Into<String>,
description: impl Into<String>,
) -> ArtifactComposite
pub fn json_input( name: impl Into<String>, description: impl Into<String>, ) -> ArtifactComposite
Declare a JSON artifact input.
Sourcepub fn text_output(
name: impl Into<String>,
description: impl Into<String>,
) -> ArtifactComposite
pub fn text_output( name: impl Into<String>, description: impl Into<String>, ) -> ArtifactComposite
Declare a text artifact output.
Sourcepub fn text_input(
name: impl Into<String>,
description: impl Into<String>,
) -> ArtifactComposite
pub fn text_input( name: impl Into<String>, description: impl Into<String>, ) -> ArtifactComposite
Declare a text artifact input.
Sourcepub fn publish(
name: impl Into<String>,
mime_type: impl Into<String>,
) -> ArtifactOp
pub fn publish( name: impl Into<String>, mime_type: impl Into<String>, ) -> ArtifactOp
Publish an artifact with the given name and MIME type.
Sourcepub fn save(name: impl Into<String>) -> ArtifactOp
pub fn save(name: impl Into<String>) -> ArtifactOp
Save an artifact to storage.
Sourcepub fn load(name: impl Into<String>) -> ArtifactOp
pub fn load(name: impl Into<String>) -> ArtifactOp
Load an artifact from storage.
Sourcepub fn list() -> ArtifactOp
pub fn list() -> ArtifactOp
List available artifacts.
Sourcepub fn delete(name: impl Into<String>) -> ArtifactOp
pub fn delete(name: impl Into<String>) -> ArtifactOp
Delete an artifact.
Sourcepub fn version(name: impl Into<String>, version: u32) -> ArtifactOp
pub fn version(name: impl Into<String>, version: u32) -> ArtifactOp
Get a specific version of an artifact.
Sourcepub fn as_json(name: impl Into<String>) -> ArtifactOp
pub fn as_json(name: impl Into<String>) -> ArtifactOp
Convert an artifact to JSON format.
Sourcepub fn as_text(name: impl Into<String>) -> ArtifactOp
pub fn as_text(name: impl Into<String>) -> ArtifactOp
Convert an artifact to text format.
Sourcepub fn from_json(name: impl Into<String>, data: impl Into<String>) -> ArtifactOp
pub fn from_json(name: impl Into<String>, data: impl Into<String>) -> ArtifactOp
Create an artifact from a JSON string.
Sourcepub fn from_text(name: impl Into<String>, data: impl Into<String>) -> ArtifactOp
pub fn from_text(name: impl Into<String>, data: impl Into<String>) -> ArtifactOp
Create an artifact from a text string.
Sourcepub fn when(
predicate: impl Fn() -> bool + Send + Sync + 'static,
inner: ArtifactOp,
) -> ArtifactOp
pub fn when( predicate: impl Fn() -> bool + Send + Sync + 'static, inner: ArtifactOp, ) -> ArtifactOp
Conditional artifact operation — executes inner only when predicate returns true.
Auto Trait Implementations§
impl Freeze for A
impl RefUnwindSafe for A
impl Send for A
impl Sync for A
impl Unpin for A
impl UnwindSafe for A
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
§impl<S> FromSample<S> for S
impl<S> FromSample<S> for S
fn from_sample_(s: S) -> S
§impl<T> FutureExt for T
impl<T> FutureExt for T
§fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_context(self, otel_cx: Context) -> WithContext<Self>
§fn with_current_context(self) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
§impl<T> FutureExt for T
impl<T> FutureExt for T
§fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_context(self, otel_cx: Context) -> WithContext<Self>
§fn with_current_context(self) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§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§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request§impl<L> LayerExt<L> for L
impl<L> LayerExt<L> for L
§fn named_layer<S>(&self, service: S) -> Layered<<L as Layer<S>>::Service, S>where
L: Layer<S>,
fn named_layer<S>(&self, service: S) -> Layered<<L as Layer<S>>::Service, S>where
L: Layer<S>,
Applies the layer to a service and wraps it in [
Layered].