pub struct LinkCodeResponse {
pub code: String,
pub deep_link: Option<String>,
pub expires_at: String,
}Expand description
The response of POST /link-codes.
Fields§
§code: StringThe one-time code, 43 base64url characters — inside Telegram’s
64-character start parameter with room to spare.
deep_link: Option<String>https://t.me/<bot>?start=<code>, ready to open. Present only
when TELEGRAM_BOT_USERNAME is configured, because the deep link
names the bot; a venture that has not named it gets no deep link
rather than a broken one, and the code pastes into /start
either way.
expires_at: StringWhen the code stops working, RFC 3339.
Trait Implementations§
Source§impl Debug for LinkCodeResponse
impl Debug for LinkCodeResponse
Source§impl JsonSchema for LinkCodeResponse
impl JsonSchema for LinkCodeResponse
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreAuto Trait Implementations§
impl Freeze for LinkCodeResponse
impl RefUnwindSafe for LinkCodeResponse
impl Send for LinkCodeResponse
impl Sync for LinkCodeResponse
impl Unpin for LinkCodeResponse
impl UnsafeUnpin for LinkCodeResponse
impl UnwindSafe for LinkCodeResponse
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