diff options
Diffstat (limited to 'src/types/content.rs')
-rw-r--r-- | src/types/content.rs | 6 |
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 |