[−][src]Trait rtdlib::types::RObject
All tdlib type abstract class defined the same behavior
Required methods
fn td_type(&self) -> RTDType
convert TDLib type to rust enum RTDType
fn to_json(&self) -> String
The string that implements the return of to_json should be called tdkit::fill_json_struct
for optimization,
appending the @struct
field, although usually struct will actively generate @struct
, but not in Object
and Function
,
because the implementation of typetag cannot be automatically generated.