pub struct HingePromptsManager {
pub prompts_data: PromptsResponse,
/* private fields */
}Fields§
§prompts_data: PromptsResponseImplementations§
Source§impl HingePromptsManager
impl HingePromptsManager
pub fn new(prompts_data: PromptsResponse) -> Self
pub fn get_prompt_by_id(&self, prompt_id: &str) -> Option<&Prompt>
pub fn get_category_by_slug(&self, slug: &str) -> Option<&PromptCategory>
pub fn get_prompts_by_category(&self, category_slug: &str) -> Vec<&Prompt>
pub fn get_selectable_prompts(&self) -> Vec<&Prompt>
pub fn get_new_prompts(&self) -> Vec<&Prompt>
pub fn search_prompts(&self, query: &str) -> Vec<&Prompt>
pub fn get_prompt_display_text(&self, prompt_id: &str) -> String
pub fn get_visible_categories(&self) -> Vec<&PromptCategory>
Auto Trait Implementations§
impl Freeze for HingePromptsManager
impl RefUnwindSafe for HingePromptsManager
impl Send for HingePromptsManager
impl Sync for HingePromptsManager
impl Unpin for HingePromptsManager
impl UnsafeUnpin for HingePromptsManager
impl UnwindSafe for HingePromptsManager
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