1
Fork 0
mirror of https://github.com/Steffo99/patched-porobot.git synced 2024-12-23 10:04:21 +00:00

Document ::telegram::inline::deck_to_inlinequeryresult

This commit is contained in:
Steffo 2022-10-18 14:44:25 +00:00 committed by GitHub
parent 39dbc3f1b7
commit 0119dbc515
Signed by: github
GPG key ID: 4AEE18F83AFDEB23

View file

@ -12,7 +12,7 @@ use teloxide::types::{
InputMessageContentText, ParseMode, InputMessageContentText, ParseMode,
}; };
/// Converts a [Card] into a [InlineQueryResult]. /// Convert a [Card] into a [InlineQueryResult].
pub fn card_to_inlinequeryresult( pub fn card_to_inlinequeryresult(
globals: &LocalizedGlobalsIndexes, globals: &LocalizedGlobalsIndexes,
card: &Card, card: &Card,
@ -43,6 +43,7 @@ pub fn card_to_inlinequeryresult(
}) })
} }
/// Convert a [Deck] into a [InlineQueryResult].
pub fn deck_to_inlinequeryresult(index: &CardIndex, deck: &Deck) -> InlineQueryResult { pub fn deck_to_inlinequeryresult(index: &CardIndex, deck: &Deck) -> InlineQueryResult {
let code = deck let code = deck
.to_code(DeckCodeFormat::F1) .to_code(DeckCodeFormat::F1)