diff options
Diffstat (limited to 'src/storage')
-rw-r--r-- | src/storage/mod.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/storage/mod.rs b/src/storage/mod.rs index c0835e6..ee475ee 100644 --- a/src/storage/mod.rs +++ b/src/storage/mod.rs @@ -36,8 +36,8 @@ pub trait Sto: Sized { } pub struct Engine<T: Sto> { - bucket: String, - row: T::Builder, + pub bucket: String, + pub row: T::Builder, } pub enum AnyEngine { @@ -45,7 +45,7 @@ pub enum AnyEngine { Garage(Engine<garage::GrgTypes>), } impl AnyEngine { - fn engine<X: Sto>(&self) -> &Engine<X> { + pub fn engine<X: Sto>(&self) -> &Engine<X> { match self { Self::InMemory(x) => x, Self::Garage(x) => x, |