#[derive(Schema)]
{
// Attributes available to this derive:
#[encore]
}
Expand description
Marks a test, as #[tokio::test] does, and tells Encore about it before it
runs. See testing.
ⓘ
#[encore::test]
async fn creates_a_user() -> Result<(), encore::Error> {
// …
}
#[encore::test(flavor = "multi_thread", worker_threads = 2)]
async fn handles_concurrent_requests() {
// …
}Registers #[encore(sensitive)] on fields for schema-based redaction.
This does not change Serde serialization.
#[derive(serde::Serialize, serde::Deserialize, encore::Schema)]
struct Signup {
user_id: String,
#[encore(sensitive)]
email: String,
}See encore::Schema.