pub struct ProjectRules { /* private fields */ }Expand description
Stable project instructions explicitly loaded by runtime construction.
Project rules are durable prompt policy such as AGENTS.md. They are not
ledger projection, context summaries, or tool-result observations.
Implementations§
Source§impl ProjectRules
impl ProjectRules
Sourcepub fn new(
source_path: impl Into<String>,
text: impl Into<String>,
) -> Result<Self, ContextError>
pub fn new( source_path: impl Into<String>, text: impl Into<String>, ) -> Result<Self, ContextError>
Creates validated project rules for the stable request prefix.
Sourcepub fn source_path(&self) -> &str
pub fn source_path(&self) -> &str
Project-relative source path or label for these rules.
Sourcepub fn content_hash(&self) -> &str
pub fn content_hash(&self) -> &str
Stable non-cryptographic fingerprint of the rules text.
Sourcepub fn to_stable_prefix_message_text(&self) -> String
pub fn to_stable_prefix_message_text(&self) -> String
Renders the exact provider-neutral project-rules stable-prefix block.
Trait Implementations§
Source§impl Clone for ProjectRules
impl Clone for ProjectRules
Source§impl Debug for ProjectRules
impl Debug for ProjectRules
impl Eq for ProjectRules
Source§impl PartialEq for ProjectRules
impl PartialEq for ProjectRules
impl StructuralPartialEq for ProjectRules
Auto Trait Implementations§
impl Forget for ProjectRules
impl Freeze for ProjectRules
impl Move for ProjectRules
impl RefUnwindSafe for ProjectRules
impl Send for ProjectRuleswhere
RawVecInner: Send,
impl Sync for ProjectRuleswhere
RawVecInner: Sync,
impl Unpin for ProjectRules
impl UnsafeUnpin for ProjectRules
impl UnwindSafe for ProjectRuleswhere
RawVecInner: UnwindSafe,
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.