mirror of
https://github.com/storytold/artcraft.git
synced 2026-11-11 04:16:55 +00:00
rename field
This commit is contained in:
1 parent
7683fe34b7
commit
5ba6a3e226
2 files changed
+2
-2
No files matched your search
+1
-1
@@ -7,7 +7,7 @@ use url::Url;
|
||||
#[derive(Clone, Debug, Serialize)]
|
||||
#[serde(rename_all = "snake_case")]
|
||||
pub struct ObjectGenerationCompleteEvent {
|
||||
pub generated_video: Option<GeneratedObject>,
|
||||
pub generated_object: Option<GeneratedObject>,
|
||||
pub maybe_frontend_subscriber_id: Option<String>,
|
||||
pub maybe_frontend_subscriber_payload: Option<String>,
|
||||
}
|
||||
|
||||
+1
-1
@@ -210,7 +210,7 @@ async fn handle_object_generation(
|
||||
|
||||
// NB: For now, we only generate one object (3d mesh) at a time.
|
||||
let event = ObjectGenerationCompleteEvent {
|
||||
generated_video: Some(GeneratedObject {
|
||||
generated_object: Some(GeneratedObject {
|
||||
media_token: MediaFileToken::new_from_str(&job_result.entity_token),
|
||||
cdn_url: job_result.media_links.cdn_url.clone(),
|
||||
maybe_thumbnail_template: media_links_to_thumbnail_template(&job_result.media_links)
|
||||
|
||||
Reference in new issue
Block a user