pub struct DirectGetBuilder<T = WithHeaders> { /* private fields */ }
Implementations§
Source§impl<T> DirectGetBuilder<T>
impl<T> DirectGetBuilder<T>
Sourcepub fn last_by_subject<S: Into<String>>(self, subject: S) -> Self
pub fn last_by_subject<S: Into<String>>(self, subject: S) -> Self
Sets the last_by_subject for the direct get request.
Sourcepub fn next_by_subject<S: Into<String>>(self, subject: S) -> Self
pub fn next_by_subject<S: Into<String>>(self, subject: S) -> Self
Sets the next_by_subject for the direct get request.
Source§impl DirectGetBuilder<WithHeaders>
impl DirectGetBuilder<WithHeaders>
Sourcepub async fn send(self) -> Result<StreamMessage, DirectGetError>
pub async fn send(self) -> Result<StreamMessage, DirectGetError>
Sends the get request and returns a StreamMessage with headers.
Source§impl DirectGetBuilder<WithoutHeaders>
impl DirectGetBuilder<WithoutHeaders>
Sourcepub async fn send(self) -> Result<StreamValue, DirectGetError>
pub async fn send(self) -> Result<StreamValue, DirectGetError>
Sends the get request and returns only the payload bytes without headers.
Auto Trait Implementations§
impl<T> Freeze for DirectGetBuilder<T>
impl<T = WithHeaders> !RefUnwindSafe for DirectGetBuilder<T>
impl<T> Send for DirectGetBuilder<T>where
T: Send,
impl<T> Sync for DirectGetBuilder<T>where
T: Sync,
impl<T> Unpin for DirectGetBuilder<T>where
T: Unpin,
impl<T = WithHeaders> !UnwindSafe for DirectGetBuilder<T>
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