pub struct Link<'a> { /* private fields */ }Expand description
Builder for Client::link
Implementations§
Source§impl<'a> Link<'a>
impl<'a> Link<'a>
pub fn new(client: &'a Client) -> Self
pub fn channel<V>(self, value: V) -> Selfwhere
V: TryInto<ChannelName>,
pub fn body<V>(self, value: V) -> Self
pub fn body_map<F>(self, f: F) -> Self
Sourcepub async fn send(self) -> Result<ResponseValue<ChannelLinkResponse>, Error<()>>
pub async fn send(self) -> Result<ResponseValue<ChannelLinkResponse>, Error<()>>
Sends a POST request to /channels/{channel}/link
Trait Implementations§
Auto Trait Implementations§
impl<'a> !RefUnwindSafe for Link<'a>
impl<'a> !UnwindSafe for Link<'a>
impl<'a> Freeze for Link<'a>
impl<'a> Send for Link<'a>
impl<'a> Sync for Link<'a>
impl<'a> Unpin for Link<'a>
impl<'a> UnsafeUnpin for Link<'a>
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