Trait CategoriesApi

Source
pub trait CategoriesApi {
    // Required methods
    fn get_categories(
        &self,
        budget_id: &str,
        last_knowledge_of_server: Option<i64>,
    ) -> Result<CategoriesResponse, Error>;
    fn get_category_by_id(
        &self,
        budget_id: &str,
        category_id: &str,
    ) -> Result<CategoryResponse, Error>;
    fn get_month_category_by_id(
        &self,
        budget_id: &str,
        month: String,
        category_id: &str,
    ) -> Result<CategoryResponse, Error>;
    fn update_category(
        &self,
        budget_id: &str,
        category_id: &str,
        data: PatchCategoryWrapper,
    ) -> Result<SaveCategoryResponse, Error>;
    fn update_month_category(
        &self,
        budget_id: &str,
        month: String,
        category_id: &str,
        data: PatchMonthCategoryWrapper,
    ) -> Result<SaveCategoryResponse, Error>;
}

Required Methods§

Source

fn get_categories( &self, budget_id: &str, last_knowledge_of_server: Option<i64>, ) -> Result<CategoriesResponse, Error>

Source

fn get_category_by_id( &self, budget_id: &str, category_id: &str, ) -> Result<CategoryResponse, Error>

Source

fn get_month_category_by_id( &self, budget_id: &str, month: String, category_id: &str, ) -> Result<CategoryResponse, Error>

Source

fn update_category( &self, budget_id: &str, category_id: &str, data: PatchCategoryWrapper, ) -> Result<SaveCategoryResponse, Error>

Source

fn update_month_category( &self, budget_id: &str, month: String, category_id: &str, data: PatchMonthCategoryWrapper, ) -> Result<SaveCategoryResponse, Error>

Implementors§