pub struct Store { /* private fields */ }Implementations§
Source§impl Store
impl Store
pub fn open(path: impl AsRef<Path>) -> Result<Self>
pub fn upsert_session(&self, s: &Session) -> Result<()>
pub fn list_sessions(&self) -> Result<Vec<Session>>
pub fn get_session(&self, id: &str) -> Result<Option<Session>>
pub fn upsert_orchestrator(&self, o: &Orchestrator) -> Result<()>
pub fn sessions_by_orchestrator( &self, orchestrator_id: &str, ) -> Result<Vec<Session>>
pub fn delete_session(&self, id: &str) -> Result<()>
pub fn delete_orchestrator(&self, id: &str) -> Result<()>
pub fn upsert_pr(&self, pr: &PR) -> Result<()>
pub fn upsert_ci_status(&self, ci: &CIStatus) -> Result<()>
pub fn upsert_comment(&self, c: &Comment) -> Result<()>
pub fn list_orchestrators(&self) -> Result<Vec<Orchestrator>>
Auto Trait Implementations§
impl !Freeze for Store
impl RefUnwindSafe for Store
impl Send for Store
impl Sync for Store
impl Unpin for Store
impl UnsafeUnpin for Store
impl UnwindSafe for Store
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