pub struct TaskView<'a> {
pub id: &'a str,
pub context_id: &'a str,
pub status: MessageFieldView<TaskStatusView<'a>>,
pub artifacts: RepeatedView<'a, ArtifactView<'a>>,
pub history: RepeatedView<'a, MessageView<'a>>,
pub metadata: MessageFieldView<StructView<'a>>,
pub __buffa_unknown_fields: UnknownFieldsView<'a>,
}Fields§
§id: &'a strField 1: id
context_id: &'a strField 2: context_id
status: MessageFieldView<TaskStatusView<'a>>Field 3: status
artifacts: RepeatedView<'a, ArtifactView<'a>>Field 4: artifacts
history: RepeatedView<'a, MessageView<'a>>Field 5: history
metadata: MessageFieldView<StructView<'a>>Field 6: metadata
__buffa_unknown_fields: UnknownFieldsView<'a>Trait Implementations§
Source§impl DefaultViewInstance for TaskView<'static>
impl DefaultViewInstance for TaskView<'static>
Source§fn default_view_instance() -> &'static Self
fn default_view_instance() -> &'static Self
Return a reference to the single default view instance.
Source§impl<'a> HasDefaultViewInstance for TaskView<'a>
impl<'a> HasDefaultViewInstance for TaskView<'a>
Source§impl<'a> MessageView<'a> for TaskView<'a>
impl<'a> MessageView<'a> for TaskView<'a>
Source§fn to_owned_message(&self) -> Task
fn to_owned_message(&self) -> Task
Convert this view to the owned message type.
Source§fn decode_view(buf: &'a [u8]) -> Result<Self, DecodeError>
fn decode_view(buf: &'a [u8]) -> Result<Self, DecodeError>
Decode a view from a buffer, borrowing string/bytes fields directly. Read more
Source§fn decode_view_with_limit(
buf: &'a [u8],
depth: u32,
) -> Result<Self, DecodeError>
fn decode_view_with_limit( buf: &'a [u8], depth: u32, ) -> Result<Self, DecodeError>
Decode a view with a custom recursion depth limit. Read more
Auto Trait Implementations§
impl<'a> Freeze for TaskView<'a>
impl<'a> RefUnwindSafe for TaskView<'a>
impl<'a> Send for TaskView<'a>
impl<'a> Sync for TaskView<'a>
impl<'a> Unpin for TaskView<'a>
impl<'a> UnsafeUnpin for TaskView<'a>
impl<'a> UnwindSafe for TaskView<'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
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