rbx_asset: unversioned request
This commit is contained in:
@@ -412,9 +412,20 @@ impl AsSessionPath for LuauSessionResponse{
|
||||
pub struct LuauSessionRequest{
|
||||
pub universe_id:u64,
|
||||
pub place_id:u64,
|
||||
pub version_id:u64,
|
||||
}
|
||||
impl AsSessionPath for LuauSessionRequest{
|
||||
fn into_session_path(&self)->impl AsRef<str>{
|
||||
let universe_id=self.universe_id;
|
||||
let place_id=self.place_id;
|
||||
format!("universes/{universe_id}/places/{place_id}/luau-execution-session-tasks")
|
||||
}
|
||||
}
|
||||
pub struct LuauSessionVersionRequest{
|
||||
pub universe_id:u64,
|
||||
pub place_id:u64,
|
||||
pub version_id:u64,
|
||||
}
|
||||
impl AsSessionPath for LuauSessionVersionRequest{
|
||||
fn into_session_path(&self)->impl AsRef<str>{
|
||||
let universe_id=self.universe_id;
|
||||
let place_id=self.place_id;
|
||||
|
||||
@@ -445,8 +445,6 @@ struct RunLuauSubcommand{
|
||||
universe_id:u64,
|
||||
#[arg(long)]
|
||||
place_id:u64,
|
||||
#[arg(long)]
|
||||
version_id:u64,
|
||||
}
|
||||
|
||||
#[derive(Clone,Copy,Debug,clap::ValueEnum)]
|
||||
@@ -772,7 +770,6 @@ async fn main()->AResult<()>{
|
||||
request:rbx_asset::cloud::LuauSessionRequest{
|
||||
place_id:subcommand.place_id,
|
||||
universe_id:subcommand.universe_id,
|
||||
version_id:subcommand.version_id,
|
||||
},
|
||||
}).await,
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user