rbx_asset: rename LuauSessionLatestRequest
This commit is contained in:
@@ -409,11 +409,11 @@ impl AsSessionPath for LuauSessionResponse{
|
||||
&self.path
|
||||
}
|
||||
}
|
||||
pub struct LuauSessionRequest{
|
||||
pub struct LuauSessionLatestRequest{
|
||||
pub universe_id:u64,
|
||||
pub place_id:u64,
|
||||
}
|
||||
impl AsSessionPath for LuauSessionRequest{
|
||||
impl AsSessionPath for LuauSessionLatestRequest{
|
||||
fn into_session_path(&self)->impl AsRef<str>{
|
||||
let universe_id=self.universe_id;
|
||||
let place_id=self.place_id;
|
||||
|
||||
@@ -767,7 +767,7 @@ async fn main()->AResult<()>{
|
||||
Some(script)=>script,
|
||||
None=>std::fs::read_to_string(subcommand.script_file.unwrap())?,
|
||||
},
|
||||
request:rbx_asset::cloud::LuauSessionRequest{
|
||||
request:rbx_asset::cloud::LuauSessionLatestRequest{
|
||||
place_id:subcommand.place_id,
|
||||
universe_id:subcommand.universe_id,
|
||||
},
|
||||
@@ -1800,7 +1800,7 @@ async fn get_luau_result_exp_backoff(
|
||||
struct RunLuauConfig{
|
||||
api_key:ApiKey,
|
||||
script:String,
|
||||
request:rbx_asset::cloud::LuauSessionRequest,
|
||||
request:rbx_asset::cloud::LuauSessionLatestRequest,
|
||||
}
|
||||
async fn run_luau(config:RunLuauConfig)->AResult<()>{
|
||||
let context=CloudContext::new(config.api_key);
|
||||
|
||||
Reference in New Issue
Block a user