Files
mize/marts/generated/src/spacetime/migrate_procedure.rs

45 lines
1.2 KiB
Rust

// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE
// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD.
#![allow(unused, clippy::all)]
use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws};
#[derive(__lib::ser::Serialize, __lib::de::Deserialize, Clone, PartialEq, Debug)]
#[sats(crate = __lib)]
struct MigrateArgs {}
impl __sdk::InModule for MigrateArgs {
type Module = super::RemoteModule;
}
#[allow(non_camel_case_types)]
/// Extension trait for access to the procedure `migrate`.
///
/// Implemented for [`super::RemoteProcedures`].
pub trait migrate {
fn migrate(&self) {
self.migrate_then(|_, _| {});
}
fn migrate_then(
&self,
__callback: impl FnOnce(&super::ProcedureEventContext, Result<String, __sdk::InternalError>)
+ Send
+ 'static,
);
}
impl migrate for super::RemoteProcedures {
fn migrate_then(
&self,
__callback: impl FnOnce(&super::ProcedureEventContext, Result<String, __sdk::InternalError>)
+ Send
+ 'static,
) {
self.imp
.invoke_procedure_with_callback::<_, String>("migrate", MigrateArgs {}, __callback);
}
}