Download tests/integration-tests/client/src/models/error_event.rs from Jadewave/trans2: direct link, hf CLI and curl.
- Browser
- Download file 609 Bytes
-
https://huggingface.co/spaces/Jadewave/trans2/resolve/main/tests/integration-tests/client/src/models/error_event.rs
- Command line
-
hf download hf://spaces/Jadewave/trans2/tests/integration-tests/client/src/models/error_event.rs
-
curl -L -o error_event.rs https://huggingface.co/spaces/Jadewave/trans2/resolve/main/tests/integration-tests/client/src/models/error_event.rs
609 Bytes
| /* | |
| * | |
| * | |
| * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) | |
| * | |
| * The version of the OpenAPI document: | |
| * | |
| * Generated by: https://openapi-generator.tech | |
| */ | |
| use crate::models; | |
| use serde::{Deserialize, Serialize}; | |
| pub struct ErrorEvent { | |
| pub message: String, | |
| pub scope: String, | |
| } | |
| impl ErrorEvent { | |
| pub fn new(message: String, scope: String) -> ErrorEvent { | |
| ErrorEvent { message, scope } | |
| } | |
| } | |