pub struct ContextEntry {
pub kind: ContextKind,
pub source: String,
pub reference: String,
pub sha256: String,
pub bytes: u64,
pub cut: bool,
}Expand description
One part handed to a call.
Fields§
§kind: ContextKindWhat it is.
source: StringWhere it came from: person, worktree, speccoder://<producer>/<name>,
github:<owner>/<repo>#<n>.
reference: StringA path, an id or a part pointer (/bundle/plan).
sha256: StringHex SHA-256 of the exact bytes given.
bytes: u64Their size.
cut: boolCut to a budget.
Trait Implementations§
Source§impl Clone for ContextEntry
impl Clone for ContextEntry
Source§impl Debug for ContextEntry
impl Debug for ContextEntry
Source§impl<'de> Deserialize<'de> for ContextEntry
impl<'de> Deserialize<'de> for ContextEntry
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for ContextEntry
Source§impl JsonSchema for ContextEntry
impl JsonSchema for ContextEntry
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreSource§impl PartialEq for ContextEntry
impl PartialEq for ContextEntry
Source§impl Serialize for ContextEntry
impl Serialize for ContextEntry
impl StructuralPartialEq for ContextEntry
Auto Trait Implementations§
impl Freeze for ContextEntry
impl RefUnwindSafe for ContextEntry
impl Send for ContextEntry
impl Sync for ContextEntry
impl Unpin for ContextEntry
impl UnsafeUnpin for ContextEntry
impl UnwindSafe for ContextEntry
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