#[non_exhaustive]pub struct PayloadPartBuilder { /* private fields */ }
Expand description
A builder for PayloadPart
.
Implementations§
source§impl PayloadPartBuilder
impl PayloadPartBuilder
sourcepub fn bytes(self, input: Blob) -> Self
pub fn bytes(self, input: Blob) -> Self
A blob that contains part of the response for your streaming inference request.
sourcepub fn set_bytes(self, input: Option<Blob>) -> Self
pub fn set_bytes(self, input: Option<Blob>) -> Self
A blob that contains part of the response for your streaming inference request.
sourcepub fn get_bytes(&self) -> &Option<Blob>
pub fn get_bytes(&self) -> &Option<Blob>
A blob that contains part of the response for your streaming inference request.
sourcepub fn build(self) -> PayloadPart
pub fn build(self) -> PayloadPart
Consumes the builder and constructs a PayloadPart
.
Trait Implementations§
source§impl Clone for PayloadPartBuilder
impl Clone for PayloadPartBuilder
source§fn clone(&self) -> PayloadPartBuilder
fn clone(&self) -> PayloadPartBuilder
Returns a copy 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 PayloadPartBuilder
impl Debug for PayloadPartBuilder
source§impl Default for PayloadPartBuilder
impl Default for PayloadPartBuilder
source§fn default() -> PayloadPartBuilder
fn default() -> PayloadPartBuilder
Returns the “default value” for a type. Read more
source§impl PartialEq for PayloadPartBuilder
impl PartialEq for PayloadPartBuilder
source§fn eq(&self, other: &PayloadPartBuilder) -> bool
fn eq(&self, other: &PayloadPartBuilder) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for PayloadPartBuilder
Auto Trait Implementations§
impl Freeze for PayloadPartBuilder
impl RefUnwindSafe for PayloadPartBuilder
impl Send for PayloadPartBuilder
impl Sync for PayloadPartBuilder
impl Unpin for PayloadPartBuilder
impl UnwindSafe for PayloadPartBuilder
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> 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 moreCreates a shared type from an unshared type.