From 93c440de45fe35951bdead563ec4477c88d156da Mon Sep 17 00:00:00 2001 From: Matthias Beyer Date: Sat, 15 Jun 2019 19:24:27 +0200 Subject: AsRef impls for the types --- src/types/content.rs | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/types/content.rs') 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 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 -- cgit v1.2.3