pub struct PromptManifest { /* private fields */ }Implementations§
Source§impl PromptManifest
impl PromptManifest
pub fn parse(input: &str) -> Result<Self, PromptError>
pub fn delegation_catalog_candidates(&self) -> Vec<QualifiedModelId>
pub fn delegation_policy( &self, foreground: QualifiedModelId, catalog: &CatalogSnapshot, ) -> Result<Option<DelegationPolicy>, PromptError>
pub fn registry( &self, manifest_dir: Option<&Path>, ) -> Result<AdapterRegistry, PromptError>
pub fn schema(&self) -> &str
pub fn validate_references<'a>( &self, known: impl IntoIterator<Item = &'a str>, ) -> Result<(), PromptError>
Trait Implementations§
Source§impl Debug for PromptManifest
impl Debug for PromptManifest
Source§impl<'de> Deserialize<'de> for PromptManifest
impl<'de> Deserialize<'de> for PromptManifest
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for PromptManifest
impl RefUnwindSafe for PromptManifest
impl Send for PromptManifest
impl Sync for PromptManifest
impl Unpin for PromptManifest
impl UnsafeUnpin for PromptManifest
impl UnwindSafe for PromptManifest
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more