pub struct CompileTimeEnv { /* private fields */ }Implementations§
Source§impl CompileTimeEnv
impl CompileTimeEnv
pub fn new( vars: Vec<String>, prompts: Vec<String>, secrets: Vec<String>, client_context: Vec<String>, ) -> Self
pub fn get_builtin_index(&self, name: &str) -> Option<(&BuiltinFn<'_>, u8)>
pub fn get_user_builtin_index(&self, name: &str) -> Option<(&BuiltinFn<'_>, u8)>
pub fn add_user_builtins(&mut self, builtins: Vec<BuiltinFn<'static>>)
pub fn add_user_builtin(&mut self, builtin: BuiltinFn<'static>)
pub fn get_builtin(&self, index: usize) -> Option<&BuiltinFn<'static>>
pub fn get_user_builtin(&self, index: usize) -> Option<&BuiltinFn<'static>>
pub fn get_var(&self, index: usize) -> Option<&String>
pub fn get_var_index(&self, name: &str) -> Option<usize>
pub fn get_prompt(&self, index: usize) -> Option<&String>
pub fn get_prompt_index(&self, name: &str) -> Option<usize>
pub fn get_secret(&self, index: usize) -> Option<&String>
pub fn get_secret_index(&self, name: &str) -> Option<usize>
pub fn get_client_context(&self, index: usize) -> Option<&String>
pub fn add_to_client_context(&mut self, key: &str) -> usize
pub fn add_keys_to_client_context(&mut self, keys: Vec<String>)
pub fn get_client_context_index(&self, name: &str) -> Option<(&String, u8)>
Trait Implementations§
Source§impl Debug for CompileTimeEnv
impl Debug for CompileTimeEnv
Auto Trait Implementations§
impl Freeze for CompileTimeEnv
impl RefUnwindSafe for CompileTimeEnv
impl Send for CompileTimeEnv
impl Sync for CompileTimeEnv
impl Unpin for CompileTimeEnv
impl UnwindSafe for CompileTimeEnv
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