fix: build issue due to missing struct field (#427)
Commit 452fe2c broke `Reference::for_prompt` where it missed
the field `title` for `struct PromptReference`, which broke
the build.
This commit fixes that.
This commit is contained in:
parent
a2fc90af49
commit
926cb33845
1 changed files with 7 additions and 1 deletions
|
|
@ -1227,7 +1227,13 @@ pub enum Reference {
|
|||
impl Reference {
|
||||
/// Create a prompt reference
|
||||
pub fn for_prompt(name: impl Into<String>) -> Self {
|
||||
Self::Prompt(PromptReference { name: name.into() })
|
||||
// Not accepting `title` currently as it'll break the API
|
||||
// Until further decision, keep it `None`, modify later
|
||||
// if required, add `title` to the API
|
||||
Self::Prompt(PromptReference {
|
||||
name: name.into(),
|
||||
title: None,
|
||||
})
|
||||
}
|
||||
|
||||
/// Create a resource reference
|
||||
|
|
|
|||
Loading…
Reference in a new issue