pub struct Webhook { /* private fields */ }Implementations§
Source§impl Webhook
impl Webhook
pub fn new(url: impl Into<String>) -> Self
pub fn set_client(self, client: Client) -> Self
pub fn username(self, username: impl Into<String>) -> Self
pub fn avatar_url(self, avatar_url: impl Into<String>) -> Self
pub fn content(self, content: impl Into<String>) -> Self
pub fn add_embed(self, embed: Embed) -> Self
pub fn add_file(self, file: impl Into<String>) -> Self
pub fn send(self) -> Result<Response, Error>
Auto Trait Implementations§
impl Freeze for Webhook
impl !RefUnwindSafe for Webhook
impl Send for Webhook
impl Sync for Webhook
impl Unpin for Webhook
impl !UnwindSafe for Webhook
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