pub struct DataSchema {
pub version: u32,
pub schema: fn() -> Value,
}Expand description
Versioned schema for a tool’s stable data payload. Agents read data; they
never parse description prose or the human text (design §4A).
Fields§
§version: u32Payload version, bumped when the shape changes so agents can pin.
schema: fn() -> ValueJSON Schema for the data object.
Trait Implementations§
Source§impl Clone for DataSchema
impl Clone for DataSchema
Source§fn clone(&self) -> DataSchema
fn clone(&self) -> DataSchema
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 DataSchema
Auto Trait Implementations§
impl Freeze for DataSchema
impl RefUnwindSafe for DataSchema
impl Send for DataSchema
impl Sync for DataSchema
impl Unpin for DataSchema
impl UnsafeUnpin for DataSchema
impl UnwindSafe for DataSchema
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<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more