pub enum ActionOutput {
Text(String),
Structured(Value),
Binary(Vec<u8>),
}Expand description
Action 出力の型付き表現
Box<dyn Any> の代わりに明示的な型を使用することで:
- Clone 可能
- パターンマッチで安全なアクセス
- 下流処理が明確化
Variants§
Text(String)
プレーンテキスト出力(stdout、ファイル内容、メッセージ等)
Structured(Value)
構造化データ出力(観測結果、クエリ結果等)
Binary(Vec<u8>)
バイナリ出力(画像、ファイル等、将来用)
Implementations§
Source§impl ActionOutput
impl ActionOutput
Trait Implementations§
Source§impl Clone for ActionOutput
impl Clone for ActionOutput
Source§fn clone(&self) -> ActionOutput
fn clone(&self) -> ActionOutput
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 ActionOutput
impl RefUnwindSafe for ActionOutput
impl Send for ActionOutput
impl Sync for ActionOutput
impl Unpin for ActionOutput
impl UnwindSafe for ActionOutput
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