pub struct RunStepResponse {
pub tensor: Vec<NamedTensorProto>,
pub metadata: Option<RunMetadata>,
pub status_code: i32,
pub status_error_message: String,
}
Fields§
§tensor: Vec<NamedTensorProto>
NOTE: The order of the returned tensors may or may not match the fetch order specified in RunStepRequest.
metadata: Option<RunMetadata>
Returned metadata if requested in the options.
status_code: i32
If store_errors_in_response_body is true in the request, then optionally the server may return an OK status for the RPC and fill the true status into the fields below, to allow for messages that are too long to fit in metadata.
status_error_message: String
Implementations§
Source§impl RunStepResponse
impl RunStepResponse
Sourcepub fn status_code(&self) -> Code
pub fn status_code(&self) -> Code
Returns the enum value of status_code
, or the default if the field is set to an invalid enum value.
Sourcepub fn set_status_code(&mut self, value: Code)
pub fn set_status_code(&mut self, value: Code)
Sets status_code
to the provided enum value.
Trait Implementations§
Source§impl Clone for RunStepResponse
impl Clone for RunStepResponse
Source§fn clone(&self) -> RunStepResponse
fn clone(&self) -> RunStepResponse
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 moreSource§impl Debug for RunStepResponse
impl Debug for RunStepResponse
Source§impl Default for RunStepResponse
impl Default for RunStepResponse
Source§impl Message for RunStepResponse
impl Message for RunStepResponse
Source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
Returns the encoded length of the message without a length delimiter.
Source§fn encode<B>(&self, buf: &mut B) -> Result<(), EncodeError>
fn encode<B>(&self, buf: &mut B) -> Result<(), EncodeError>
Encodes the message to a buffer. Read more
Source§fn encode_length_delimited<B>(&self, buf: &mut B) -> Result<(), EncodeError>
fn encode_length_delimited<B>(&self, buf: &mut B) -> Result<(), EncodeError>
Encodes the message with a length-delimiter to a buffer. Read more
Source§fn decode<B>(buf: B) -> Result<Self, DecodeError>
fn decode<B>(buf: B) -> Result<Self, DecodeError>
Decodes an instance of the message from a buffer. Read more
Source§fn decode_length_delimited<B>(buf: B) -> Result<Self, DecodeError>
fn decode_length_delimited<B>(buf: B) -> Result<Self, DecodeError>
Decodes a length-delimited instance of the message from the buffer.
Source§fn merge<B>(&mut self, buf: B) -> Result<(), DecodeError>
fn merge<B>(&mut self, buf: B) -> Result<(), DecodeError>
Decodes an instance of the message from a buffer, and merges it into
self
. Read moreSource§fn merge_length_delimited<B>(&mut self, buf: B) -> Result<(), DecodeError>
fn merge_length_delimited<B>(&mut self, buf: B) -> Result<(), DecodeError>
Decodes a length-delimited instance of the message from buffer, and
merges it into
self
.Source§impl PartialEq for RunStepResponse
impl PartialEq for RunStepResponse
impl StructuralPartialEq for RunStepResponse
Auto Trait Implementations§
impl Freeze for RunStepResponse
impl RefUnwindSafe for RunStepResponse
impl Send for RunStepResponse
impl Sync for RunStepResponse
impl Unpin for RunStepResponse
impl UnwindSafe for RunStepResponse
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