pub struct ResponseMetadataBuilder(/* private fields */);Expand description
Builder for ResponseMetadata.
Implementations§
Source§impl ResponseMetadataBuilder
impl ResponseMetadataBuilder
pub fn sequence_number(self, value: impl Into<i64>) -> Self
pub fn response_id(self, value: impl Into<String>) -> Self
pub fn metadata(self, value: impl Into<Value>) -> Self
pub fn headers(self, value: impl Into<Value>) -> Self
pub fn safety_buffering(self, value: impl Into<Value>) -> Self
pub fn rest(self, value: Rest) -> Self
Sourcepub fn build(self) -> ResponseMetadata
pub fn build(self) -> ResponseMetadata
Return the completed wire value.
Auto Trait Implementations§
impl Freeze for ResponseMetadataBuilder
impl RefUnwindSafe for ResponseMetadataBuilder
impl Send for ResponseMetadataBuilder
impl Sync for ResponseMetadataBuilder
impl Unpin for ResponseMetadataBuilder
impl UnsafeUnpin for ResponseMetadataBuilder
impl UnwindSafe for ResponseMetadataBuilder
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