mirror of
https://github.com/aljazceru/breez-sdk-docs.git
synced 2025-12-17 22:04:21 +01:00
Extract rust snippets and reference them
This commit is contained in:
10
snippets/rust/src/static_channel_backup.rs
Normal file
10
snippets/rust/src/static_channel_backup.rs
Normal file
@@ -0,0 +1,10 @@
|
||||
use anyhow::Result;
|
||||
use breez_sdk_core::*;
|
||||
|
||||
async fn retrieve_backup_files() -> Result<()> {
|
||||
let backup_data = BreezServices::static_backup(StaticBackupRequest {
|
||||
working_dir: "<working directory>".into(),
|
||||
})?;
|
||||
|
||||
Ok(())
|
||||
}
|
||||
Reference in New Issue
Block a user