This service can be used to:
root: Set the work directory for backendkey_id: B2 application key keyIDapplication_key B2 application key applicationKeybucket B2 bucket namebucket_id B2 bucket_idYou can refer to [B2Builder]'s docs for more information
use opendal_core::Operator; use opendal_core::Result; use opendal_service_b2::B2; #[tokio::main] async fn main() -> Result<()> { // create backend builder let mut builder = B2::default() // set the storage bucket for OpenDAL .root("/") // set the key_id for OpenDAL .application_key_id("xxxxxxxxxx") // set the key_id for OpenDAL .application_key("xxxxxxxxxx") // set the bucket name for OpenDAL .bucket("opendal") // set the bucket_id for OpenDAL .bucket_id("xxxxxxxxxxxxx"); let op: Operator = Operator::new(builder)?.finish(); Ok(()) }