mirror of
https://github.com/matrix-org/matrix-rust-sdk.git
synced 2026-05-14 19:16:02 -04:00
feat(bindings): Add {TimelineItem,EventTimelineItem}::fmt_debug
This commit is contained in:
committed by
Jonas Platte
parent
01cc896dab
commit
f2ea72224d
@@ -153,6 +153,10 @@ impl TimelineItem {
|
||||
Arc::new(VirtualTimelineItem(vt))
|
||||
})
|
||||
}
|
||||
|
||||
pub fn fmt_debug(&self) -> String {
|
||||
format!("{:#?}", self.0)
|
||||
}
|
||||
}
|
||||
|
||||
pub struct EventTimelineItem(pub(crate) matrix_sdk::room::timeline::EventTimelineItem);
|
||||
@@ -196,6 +200,10 @@ impl EventTimelineItem {
|
||||
pub fn raw(&self) -> Option<String> {
|
||||
self.0.raw().map(|r| r.json().get().to_owned())
|
||||
}
|
||||
|
||||
pub fn fmt_debug(&self) -> String {
|
||||
format!("{:#?}", self.0)
|
||||
}
|
||||
}
|
||||
|
||||
#[derive(Clone, uniffi::Object)]
|
||||
|
||||
Reference in New Issue
Block a user