pub struct GatewayService { /* private fields */ }Implementations§
Source§impl GatewayService
impl GatewayService
pub fn new(projects: ProjectRegistry, runner: Arc<dyn Runner>) -> Self
pub fn new_with_config_path( projects: ProjectRegistry, runner: Arc<dyn Runner>, config_path: Option<PathBuf>, ) -> Self
pub fn list_projects(&self) -> Result<Vec<Project>>
pub fn add_project( &self, name: &str, config: ProjectConfig, make_current: bool, ) -> Result<Project>
pub fn use_project(&self, name: &str) -> Result<Project>
pub fn current_project(&self) -> Result<Project>
pub async fn context(&self, project: &str) -> Result<ServiceResponse>
pub async fn recall( &self, project: &str, query: &str, ) -> Result<ServiceResponse>
pub async fn remember( &self, project: &str, kind: &str, text: &str, ) -> Result<ServiceResponse>
pub async fn task_list(&self, project: &str) -> Result<ServiceResponse>
pub async fn task_create( &self, project: &str, title: &str, body: &str, ) -> Result<ServiceResponse>
pub async fn task_update( &self, project: &str, id: &str, text: &str, ) -> Result<ServiceResponse>
pub async fn task_done( &self, project: &str, id: &str, ) -> Result<ServiceResponse>
Auto Trait Implementations§
impl !Freeze for GatewayService
impl !RefUnwindSafe for GatewayService
impl !UnwindSafe for GatewayService
impl Send for GatewayService
impl Sync for GatewayService
impl Unpin for GatewayService
impl UnsafeUnpin for GatewayService
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