Merge pull request #88 from teloxide/notable_trait

Use proper notable_trait attr
This commit is contained in:
Hirrolot 2021-05-08 23:18:26 -07:00 committed by GitHub
commit 54622780fd
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 3 additions and 3 deletions

View file

@ -5,7 +5,7 @@
///
/// Also, this trait provides some additional information needed to send a
/// request to Telegram.
#[cfg_attr(all(docsrs, feature = "nightly"), doc(spotlight))]
#[cfg_attr(all(docsrs, feature = "nightly"), doc(notable_trait))]
pub trait Payload {
/// The return type of a Telegram method.
///

View file

@ -16,7 +16,7 @@ use crate::requests::{HasPayload, Output};
/// `B::send_ref` while _not_ meaning to really send the request at the moment.
///
/// [`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 {
/*
* Could be mostly `core::future::IntoFuture` though there is no reason to

View file

@ -47,7 +47,7 @@ use crate::{
/// 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 {
/// Error type returned by all requests.
type Err: std::error::Error + Send;