diff --git a/libimaglink/src/external.rs b/libimaglink/src/external.rs index faca38ac..52f1fa5f 100644 --- a/libimaglink/src/external.rs +++ b/libimaglink/src/external.rs @@ -1,3 +1,4 @@ +use libimagstore::store::Entry; use libimagstore::store::EntryHeader; use error::{LinkError, LinkErrorKind}; @@ -62,3 +63,14 @@ impl ExternalLinker for EntryHeader { } +impl ExternalLinker for Entry { + + fn get_external_link(&self) -> Result> { + self.get_header().get_external_link() + } + + fn set_external_link(&mut self, l: Link) -> Result> { + self.get_header_mut().set_external_link(l) + } + +}