pub trait AsResponseParameters {
// Required method
fn response_parameters(&self) -> Option<ResponseParameters>;
// Provided methods
fn retry_after(&self) -> Option<Seconds> { ... }
fn migrate_to_chat_id(&self) -> Option<ChatId> { ... }
}Required Methods§
fn response_parameters(&self) -> Option<ResponseParameters>
Provided Methods§
fn retry_after(&self) -> Option<Seconds>
fn migrate_to_chat_id(&self) -> Option<ChatId>
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".