pub struct PromptModule {
pub id: PromptModuleId,
pub version: String,
pub source: PromptModuleSource,
pub priority: u16,
pub selectors: PromptSelectors,
pub mutability: ModuleMutability,
pub sha256: String,
/* private fields */
}Fields§
§id: PromptModuleId§version: String§source: PromptModuleSource§priority: u16§selectors: PromptSelectors§mutability: ModuleMutability§sha256: StringImplementations§
Source§impl PromptModule
impl PromptModule
pub fn new( id: PromptModuleId, version: impl Into<String>, source: PromptModuleSource, priority: u16, selectors: PromptSelectors, mutability: ModuleMutability, content: impl Into<String>, ) -> Result<Self, PromptError>
pub fn content(&self) -> &str
Trait Implementations§
Source§impl Clone for PromptModule
impl Clone for PromptModule
Source§fn clone(&self) -> PromptModule
fn clone(&self) -> PromptModule
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for PromptModule
impl RefUnwindSafe for PromptModule
impl Send for PromptModule
impl Sync for PromptModule
impl Unpin for PromptModule
impl UnsafeUnpin for PromptModule
impl UnwindSafe for PromptModule
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