pub async fn register(ices_builder: ICESBuilder) -> Result<EmitResult<String>, String> {
    let canister_id = Principal::from_text(&ices_builder.override_id).unwrap();
    let _call_result : Result<(EmitResult<String>,), _>=
            api::call::call(canister_id, "register", ()).await;
    match _call_result {
        Ok((res,)) => {
            Ok(res)
        },
        Err((code, msg)) => {
            Err(format!(
                "An error happened during the call: {}: {}",
                code as u8, msg
            ))
        }
        
    }
}
/// Register the current Canister to ICES Main (Router) Canister
Register the current Canister to ICES Main (Router) Canister
Register the current Canister to ICES Main ( Router ) Canister
pub async fn register(ices_builder: ICESBuilder) -> Result<EmitResult<String>, String> {
    let canister_id = Principal::from_text(&ices_builder.override_id).unwrap();
    let _call_result : Result<(EmitResult<String>,), _>=
            api::call::call(canister_id, "register", ()).await;
    match _call_result {
        Ok((res,)) => {
            Ok(res)
        },
        Err((code, msg)) => {
            Err(format!(
                "An error happened during the call: {}: {}",
                code as u8, msg
            ))
        }
    }
}
pub async fn register ( ices_builder : ICESBuilder ) -> Result < EmitResult < String > , String > { let canister_id = Principal :: from_text ( & ices_builder . override_id ) . unwrap ( ) ; let _call_result : Result < ( EmitResult < String > , ) , _ > = api :: call :: call ( canister_id , " " , ( ) ) . await ; match _call_result { Ok ( ( res , ) ) => { Ok ( res ) } , Err ( ( code , msg ) ) => { Err ( format ! ( " " code as u8 msg ) ) } } }
Register the current Canister to ICES Main (Router) Canister
Register the current Canister to ICES Main ( Router ) Canister
ices_builder
ICESBuilder