diff --git a/.llms-snapshots/llms-full.txt b/.llms-snapshots/llms-full.txt index ac7f3303..2ac46dc3 100644 --- a/.llms-snapshots/llms-full.txt +++ b/.llms-snapshots/llms-full.txt @@ -3113,7 +3113,7 @@ The following functions from `@junobuild/core` are used in this example: | `uploadFile` | Upload a file to storage | [`src/components/Modal.vue`](https://github.com/junobuild/create-juno/blob/main/templates/vue-example/src/components/Modal.vue) | [Upload file](/docs/build/storage/development.md#upload-file) | | `deleteAsset` | Delete a file from storage | [`src/components/Delete.vue`](https://github.com/junobuild/create-juno/blob/main/templates/vue-example/src/components/Delete.vue) | [Delete asset](/docs/build/storage/development.md#delete-asset) | -# Rust Assertions Example +# Rust Assertion Example This example demonstrates how to write a **custom assertion** in **Rust** for a Juno **serverless function**. It shows how to intercept and validate data operations—such as rejecting specific content—before it's written to the datastore. diff --git a/.llms-snapshots/llms.txt b/.llms-snapshots/llms.txt index e870e48c..470a74d7 100644 --- a/.llms-snapshots/llms.txt +++ b/.llms-snapshots/llms.txt @@ -58,7 +58,7 @@ Juno is your self-contained serverless platform for building full-stack web apps ## Examples - Functions - Rust -- [Rust Assertions Example](https://juno.build/docs/examples/functions/rust/assertions.md): An example demonstrating how to write custom assertions in Rust for Juno serverless functions. +- [Rust Assertions Example](https://juno.build/docs/examples/functions/rust/assertion.md): An example demonstrating how to write custom assertions in Rust for Juno serverless functions. - [Generating Assets with Rust Serverless Functions](https://juno.build/docs/examples/functions/rust/generating-assets-with-hooks.md): An example showing how to dynamically generate and store assets (like JSON) in Storage using Rust in Juno Satellites. - [Mutating Documents with Rust Hooks](https://juno.build/docs/examples/functions/rust/mutating-docs-with-hooks.md): An example demonstrating how to modify and re-save documents in Juno Satellites using Rust hooks. diff --git a/docs/examples/functions/rust/assertions.mdx b/docs/examples/functions/rust/assertion.mdx similarity index 100% rename from docs/examples/functions/rust/assertions.mdx rename to docs/examples/functions/rust/assertion.mdx diff --git a/sidebars.ts b/sidebars.ts index d10e44ab..87e7254d 100644 --- a/sidebars.ts +++ b/sidebars.ts @@ -120,7 +120,7 @@ const sidebars: SidebarsConfig = { "Examples of writing serverless functions in Rust for Juno. Includes patterns like custom assertions, data manipulation and calls." }, items: [ - "examples/functions/rust/assertions", + "examples/functions/rust/assertion", "examples/functions/rust/mutating-docs-with-hooks", "examples/functions/rust/generating-assets-with-hooks" ]