pub struct FlowRegistry { /* private fields */ }Implementations§
Source§impl FlowRegistry
impl FlowRegistry
pub fn open(project_dir: &Path) -> Result<Self>
pub fn path(&self) -> &Path
pub fn snapshot( &self, flow_name: &str, content: &str, meta: &FlowMeta, origin_path: Option<&Path>, ) -> Result<SnapshotOutcome>
pub fn list_versions(&self, flow_name: &str) -> Result<Vec<FlowRevision>>
pub fn latest(&self, flow_name: &str) -> Result<Option<FlowRevision>>
pub fn find_by_version( &self, flow_name: &str, version_or_hash: &str, ) -> Result<Option<FlowRevision>>
pub fn count(&self, flow_name: &str) -> Result<u64>
pub fn flow_names(&self) -> Result<Vec<String>>
Auto Trait Implementations§
impl !Freeze for FlowRegistry
impl RefUnwindSafe for FlowRegistry
impl Send for FlowRegistry
impl Sync for FlowRegistry
impl Unpin for FlowRegistry
impl UnsafeUnpin for FlowRegistry
impl UnwindSafe for FlowRegistry
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Convert
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Convert
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Convert
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.