Struct protos::sp_sdk::SDKResponse
source · pub struct SDKResponse {
pub data: Vec<u8>,
pub status: EnumOrUnknown<ExecStatus>,
pub status_message: Option<String>,
pub pipeline_status: Vec<PipelineStatus>,
pub metadata: HashMap<String, String>,
pub sdk_mode: EnumOrUnknown<SDKMode>,
pub special_fields: SpecialFields,
}Expand description
Common return response used by all SDKs
Fields§
§data: Vec<u8>Contains (potentially) modified input data
status: EnumOrUnknown<ExecStatus>Execution status of the last step
status_message: Option<String>Optional message accompanying the exec status for the last step
pipeline_status: Vec<PipelineStatus>An array of pipelines that the SDK executed and the status of each step
metadata: HashMap<String, String>Includes any metadata that the step(s) may want to pass back to the user.
NOTE: Metadata is aggregated across all steps in the pipeline, so if two steps both set a key “foo” to different values, the value of “foo” in the response will be the value set by the last step in the pipeline.
To learn more about “metadata”, see SDK Spec V2 doc “Pipeline Step & Error Behavior” section.
sdk_mode: EnumOrUnknown<SDKMode>SDKMode is purely an informative field that tells the user the mode that the SDK was running in when the response was generated.
special_fields: SpecialFieldsImplementations§
source§impl SDKResponse
impl SDKResponse
pub fn new() -> SDKResponse
Trait Implementations§
source§impl Clone for SDKResponse
impl Clone for SDKResponse
source§fn clone(&self) -> SDKResponse
fn clone(&self) -> SDKResponse
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for SDKResponse
impl Debug for SDKResponse
source§impl<'a> Default for &'a SDKResponse
impl<'a> Default for &'a SDKResponse
source§fn default() -> &'a SDKResponse
fn default() -> &'a SDKResponse
source§impl Default for SDKResponse
impl Default for SDKResponse
source§fn default() -> SDKResponse
fn default() -> SDKResponse
source§impl Display for SDKResponse
impl Display for SDKResponse
source§impl Message for SDKResponse
impl Message for SDKResponse
source§fn is_initialized(&self) -> bool
fn is_initialized(&self) -> bool
true for protobuf 3.source§fn merge_from(&mut self, is: &mut CodedInputStream<'_>) -> Result<()>
fn merge_from(&mut self, is: &mut CodedInputStream<'_>) -> Result<()>
source§fn compute_size(&self) -> u64
fn compute_size(&self) -> u64
source§fn write_to_with_cached_sizes(
&self,
os: &mut CodedOutputStream<'_>
) -> Result<()>
fn write_to_with_cached_sizes( &self, os: &mut CodedOutputStream<'_> ) -> Result<()>
source§fn special_fields(&self) -> &SpecialFields
fn special_fields(&self) -> &SpecialFields
source§fn mut_special_fields(&mut self) -> &mut SpecialFields
fn mut_special_fields(&mut self) -> &mut SpecialFields
source§fn new() -> SDKResponse
fn new() -> SDKResponse
source§fn default_instance() -> &'static SDKResponse
fn default_instance() -> &'static SDKResponse
source§fn parse_from(is: &mut CodedInputStream<'_>) -> Result<Self, Error>
fn parse_from(is: &mut CodedInputStream<'_>) -> Result<Self, Error>
source§fn cached_size(&self) -> u32
fn cached_size(&self) -> u32
compute_size. Read moresource§fn write_to(&self, os: &mut CodedOutputStream<'_>) -> Result<(), Error>
fn write_to(&self, os: &mut CodedOutputStream<'_>) -> Result<(), Error>
source§fn write_length_delimited_to(
&self,
os: &mut CodedOutputStream<'_>
) -> Result<(), Error>
fn write_length_delimited_to( &self, os: &mut CodedOutputStream<'_> ) -> Result<(), Error>
source§fn write_length_delimited_to_vec(&self, vec: &mut Vec<u8>) -> Result<(), Error>
fn write_length_delimited_to_vec(&self, vec: &mut Vec<u8>) -> Result<(), Error>
source§fn merge_from_bytes(&mut self, bytes: &[u8]) -> Result<(), Error>
fn merge_from_bytes(&mut self, bytes: &[u8]) -> Result<(), Error>
source§fn parse_from_reader(reader: &mut dyn Read) -> Result<Self, Error>
fn parse_from_reader(reader: &mut dyn Read) -> Result<Self, Error>
source§fn check_initialized(&self) -> Result<(), Error>
fn check_initialized(&self) -> Result<(), Error>
source§fn write_to_writer(&self, w: &mut dyn Write) -> Result<(), Error>
fn write_to_writer(&self, w: &mut dyn Write) -> Result<(), Error>
source§fn write_length_delimited_to_writer(
&self,
w: &mut dyn Write
) -> Result<(), Error>
fn write_length_delimited_to_writer( &self, w: &mut dyn Write ) -> Result<(), Error>
source§fn write_length_delimited_to_bytes(&self) -> Result<Vec<u8>, Error>
fn write_length_delimited_to_bytes(&self) -> Result<Vec<u8>, Error>
source§fn unknown_fields(&self) -> &UnknownFields
fn unknown_fields(&self) -> &UnknownFields
source§fn mut_unknown_fields(&mut self) -> &mut UnknownFields
fn mut_unknown_fields(&mut self) -> &mut UnknownFields
source§impl MessageFull for SDKResponse
impl MessageFull for SDKResponse
source§fn descriptor() -> MessageDescriptor
fn descriptor() -> MessageDescriptor
source§fn reflect_eq(&self, other: &Self, mode: &ReflectEqMode) -> bool
fn reflect_eq(&self, other: &Self, mode: &ReflectEqMode) -> bool
source§impl PartialEq for SDKResponse
impl PartialEq for SDKResponse
source§fn eq(&self, other: &SDKResponse) -> bool
fn eq(&self, other: &SDKResponse) -> bool
self and other values to be equal, and is used
by ==.source§impl ProtobufValue for SDKResponse
impl ProtobufValue for SDKResponse
§type RuntimeType = RuntimeTypeMessage<SDKResponse>
type RuntimeType = RuntimeTypeMessage<SDKResponse>
impl StructuralPartialEq for SDKResponse
Auto Trait Implementations§
impl !Freeze for SDKResponse
impl RefUnwindSafe for SDKResponse
impl Send for SDKResponse
impl Sync for SDKResponse
impl Unpin for SDKResponse
impl UnwindSafe for SDKResponse
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
source§impl<M> MessageDyn for Mwhere
M: MessageFull,
impl<M> MessageDyn for Mwhere
M: MessageFull,
source§fn descriptor_dyn(&self) -> MessageDescriptor
fn descriptor_dyn(&self) -> MessageDescriptor
source§fn merge_from_dyn(&mut self, is: &mut CodedInputStream<'_>) -> Result<(), Error>
fn merge_from_dyn(&mut self, is: &mut CodedInputStream<'_>) -> Result<(), Error>
source§fn write_to_with_cached_sizes_dyn(
&self,
os: &mut CodedOutputStream<'_>
) -> Result<(), Error>
fn write_to_with_cached_sizes_dyn( &self, os: &mut CodedOutputStream<'_> ) -> Result<(), Error>
source§fn compute_size_dyn(&self) -> u64
fn compute_size_dyn(&self) -> u64
source§fn is_initialized_dyn(&self) -> bool
fn is_initialized_dyn(&self) -> bool
true for protobuf 3.