summaryrefslogtreecommitdiffstats
path: root/src/types/content.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/types/content.rs')
-rw-r--r--src/types/content.rs6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/types/content.rs b/src/types/content.rs
index 8315804..63bad91 100644
--- a/src/types/content.rs
+++ b/src/types/content.rs
@@ -60,6 +60,12 @@ impl Content {
}
+impl AsRef<Content> for Content {
+ fn as_ref(&self) -> &Self {
+ &self
+ }
+}
+
/// The Payload type represents the Payload of a Content object
///
/// The Payload type contains several variants, as an update (new block) may be either just a