mirror of
https://github.com/teloxide/teloxide.git
synced 2024-12-23 15:01:45 +01:00
Merge pull request #88 from teloxide/notable_trait
Use proper notable_trait attr
This commit is contained in:
commit
54622780fd
3 changed files with 3 additions and 3 deletions
|
@ -5,7 +5,7 @@
|
||||||
///
|
///
|
||||||
/// Also, this trait provides some additional information needed to send a
|
/// Also, this trait provides some additional information needed to send a
|
||||||
/// request to Telegram.
|
/// request to Telegram.
|
||||||
#[cfg_attr(all(docsrs, feature = "nightly"), doc(spotlight))]
|
#[cfg_attr(all(docsrs, feature = "nightly"), doc(notable_trait))]
|
||||||
pub trait Payload {
|
pub trait Payload {
|
||||||
/// The return type of a Telegram method.
|
/// The return type of a Telegram method.
|
||||||
///
|
///
|
||||||
|
|
|
@ -16,7 +16,7 @@ use crate::requests::{HasPayload, Output};
|
||||||
/// `B::send_ref` while _not_ meaning to really send the request at the moment.
|
/// `B::send_ref` while _not_ meaning to really send the request at the moment.
|
||||||
///
|
///
|
||||||
/// [`Throttle<B>`]: crate::adaptors::Throttle
|
/// [`Throttle<B>`]: crate::adaptors::Throttle
|
||||||
#[cfg_attr(all(docsrs, feature = "nightly"), doc(spotlight))]
|
#[cfg_attr(all(docsrs, feature = "nightly"), doc(notable_trait))]
|
||||||
pub trait Request: HasPayload {
|
pub trait Request: HasPayload {
|
||||||
/*
|
/*
|
||||||
* Could be mostly `core::future::IntoFuture` though there is no reason to
|
* Could be mostly `core::future::IntoFuture` though there is no reason to
|
||||||
|
|
|
@ -47,7 +47,7 @@ use crate::{
|
||||||
/// bot.send_message(chat, "hi").send().await.expect("error")
|
/// bot.send_message(chat, "hi").send().await.expect("error")
|
||||||
/// }
|
/// }
|
||||||
/// ```
|
/// ```
|
||||||
#[cfg_attr(all(docsrs, feature = "nightly"), doc(spotlight))]
|
#[cfg_attr(all(docsrs, feature = "nightly"), doc(notable_trait))]
|
||||||
pub trait Requester {
|
pub trait Requester {
|
||||||
/// Error type returned by all requests.
|
/// Error type returned by all requests.
|
||||||
type Err: std::error::Error + Send;
|
type Err: std::error::Error + Send;
|
||||||
|
|
Loading…
Reference in a new issue