#[non_exhaustive]pub struct HookPluginTemplates {
pub plugin_manifest: &'static str,
pub hooks_manifest: &'static str,
}Expand description
The two manifests a consumer packages into its plugin source directory, as the registry hands them out.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.plugin_manifest: &'static strPLUGIN_MANIFEST_TEMPLATE, destined for .codex-plugin/plugin.json.
hooks_manifest: &'static strHOOKS_MANIFEST_TEMPLATE, destined for hooks/hooks.json.
Trait Implementations§
Source§impl Clone for HookPluginTemplates
impl Clone for HookPluginTemplates
Source§fn clone(&self) -> HookPluginTemplates
fn clone(&self) -> HookPluginTemplates
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 moreimpl Copy for HookPluginTemplates
Source§impl Debug for HookPluginTemplates
impl Debug for HookPluginTemplates
impl Eq for HookPluginTemplates
Source§impl PartialEq for HookPluginTemplates
impl PartialEq for HookPluginTemplates
impl StructuralPartialEq for HookPluginTemplates
Auto Trait Implementations§
impl Freeze for HookPluginTemplates
impl RefUnwindSafe for HookPluginTemplates
impl Send for HookPluginTemplates
impl Sync for HookPluginTemplates
impl Unpin for HookPluginTemplates
impl UnsafeUnpin for HookPluginTemplates
impl UnwindSafe for HookPluginTemplates
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.