pub struct ModuleHandler { /* private fields */ }
Expand description
Module handler for managing Redis modules
Implementations§
Source§impl ModuleHandler
impl ModuleHandler
pub fn new(client: RestClient) -> Self
Sourcepub async fn update(&self, uid: &str, updates: Value) -> Result<Module>
pub async fn update(&self, uid: &str, updates: Value) -> Result<Module>
Update module configuration
Sourcepub async fn config_bdb(&self, bdb_uid: u32, config: Value) -> Result<Module>
pub async fn config_bdb(&self, bdb_uid: u32, config: Value) -> Result<Module>
Configure modules for a specific database - POST /v1/modules/config/bdb/{uid}
Sourcepub async fn upgrade_bdb(&self, bdb_uid: u32, body: Value) -> Result<Module>
pub async fn upgrade_bdb(&self, bdb_uid: u32, body: Value) -> Result<Module>
Upgrade modules for a specific database - POST /v1/modules/upgrade/bdb/{uid}
Sourcepub async fn upload_v2(&self, body: Value) -> Result<Module>
pub async fn upload_v2(&self, body: Value) -> Result<Module>
Upload module via v2 API - POST /v2/modules
Sourcepub async fn delete_v2(&self, uid: &str) -> Result<()>
pub async fn delete_v2(&self, uid: &str) -> Result<()>
Delete module via v2 API - DELETE /v2/modules/{uid}
pub fn v1(&self) -> ModulesV1
pub fn v2(&self) -> ModulesV2
Auto Trait Implementations§
impl Freeze for ModuleHandler
impl !RefUnwindSafe for ModuleHandler
impl Send for ModuleHandler
impl Sync for ModuleHandler
impl Unpin for ModuleHandler
impl !UnwindSafe for ModuleHandler
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