#[non_exhaustive]pub struct SendApiAssetOutputBuilder { /* private fields */ }Expand description
A builder for SendApiAssetOutput.
Implementations§
source§impl SendApiAssetOutputBuilder
impl SendApiAssetOutputBuilder
sourcepub fn body(self, input: impl Into<String>) -> Self
pub fn body(self, input: impl Into<String>) -> Self
The response body from the underlying API tracked by the API asset.
sourcepub fn set_body(self, input: Option<String>) -> Self
pub fn set_body(self, input: Option<String>) -> Self
The response body from the underlying API tracked by the API asset.
sourcepub fn get_body(&self) -> &Option<String>
pub fn get_body(&self) -> &Option<String>
The response body from the underlying API tracked by the API asset.
sourcepub fn response_headers(
self,
k: impl Into<String>,
v: impl Into<String>
) -> Self
pub fn response_headers( self, k: impl Into<String>, v: impl Into<String> ) -> Self
Adds a key-value pair to response_headers.
To override the contents of this collection use set_response_headers.
The response headers from the underlying API tracked by the API asset.
sourcepub fn set_response_headers(
self,
input: Option<HashMap<String, String>>
) -> Self
pub fn set_response_headers( self, input: Option<HashMap<String, String>> ) -> Self
The response headers from the underlying API tracked by the API asset.
sourcepub fn get_response_headers(&self) -> &Option<HashMap<String, String>>
pub fn get_response_headers(&self) -> &Option<HashMap<String, String>>
The response headers from the underlying API tracked by the API asset.
sourcepub fn build(self) -> SendApiAssetOutput
pub fn build(self) -> SendApiAssetOutput
Consumes the builder and constructs a SendApiAssetOutput.
Trait Implementations§
source§impl Clone for SendApiAssetOutputBuilder
impl Clone for SendApiAssetOutputBuilder
source§fn clone(&self) -> SendApiAssetOutputBuilder
fn clone(&self) -> SendApiAssetOutputBuilder
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 SendApiAssetOutputBuilder
impl Debug for SendApiAssetOutputBuilder
source§impl Default for SendApiAssetOutputBuilder
impl Default for SendApiAssetOutputBuilder
source§fn default() -> SendApiAssetOutputBuilder
fn default() -> SendApiAssetOutputBuilder
Returns the “default value” for a type. Read more
source§impl PartialEq for SendApiAssetOutputBuilder
impl PartialEq for SendApiAssetOutputBuilder
source§fn eq(&self, other: &SendApiAssetOutputBuilder) -> bool
fn eq(&self, other: &SendApiAssetOutputBuilder) -> bool
This method tests for
self and other values to be equal, and is used
by ==.impl StructuralPartialEq for SendApiAssetOutputBuilder
Auto Trait Implementations§
impl Freeze for SendApiAssetOutputBuilder
impl RefUnwindSafe for SendApiAssetOutputBuilder
impl Send for SendApiAssetOutputBuilder
impl Sync for SendApiAssetOutputBuilder
impl Unpin for SendApiAssetOutputBuilder
impl UnwindSafe for SendApiAssetOutputBuilder
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>
Creates a shared type from an unshared type.