Skip to content

Commit 2a3c015

Browse files
committed
Add key fallback
1 parent c653a56 commit 2a3c015

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/key.rs

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -651,7 +651,7 @@ impl AsRef<KeyBuilder> for KeyBuilder {
651651
}
652652
}
653653

654-
#[derive(Debug, Copy, Clone, Eq, PartialEq, Serialize, Deserialize)]
654+
#[derive(Debug, Clone, Eq, PartialEq, Serialize, Deserialize)]
655655
pub enum Action {
656656
/// Provides access to everything.
657657
#[serde(rename = "*")]
@@ -713,8 +713,13 @@ pub enum Action {
713713
/// Provides access to the [delete key](https://www.meilisearch.com/docs/reference/api/keys#delete-a-key) endpoint.
714714
#[serde(rename = "keys.delete")]
715715
KeyDelete,
716+
/// Provides access to chat completions endpoints.
716717
#[serde(rename = "chatCompletions")]
717718
ChatCompletions,
719+
/// Any other value that might be added to Meilisearch in the future but that is not supported by this SDK.
720+
/// If you see one, please open a PR
721+
#[serde(untagged)]
722+
Unknown(String),
718723
}
719724

720725
#[derive(Debug, Clone, Deserialize)]

0 commit comments

Comments
 (0)