Skip to main content

VerbPresentationPolicy

Enum VerbPresentationPolicy 

Source
pub enum VerbPresentationPolicy {
    Standard,
    AlwaysVerbose,
}
Expand description

Presentation override for a verb handler.

Most verbs use the default Standard policy which allows the caller’s requested PresentationMode to apply. A small set declare AlwaysVerbose because Agent-mode trimming (UUID shortening, empty-field dropping) would corrupt their response for downstream chaining — e.g. get returns UUIDs that callers pipe into link; shortening them here breaks the chain.

The policy is carried as a const in HandlerDef so the registry can consult it before applying the presentation transform.

Variants§

§

Standard

Apply the caller’s requested PresentationMode unchanged.

§

AlwaysVerbose

Always use Verbose output regardless of the caller’s mode.

Declared verbs: get, link, query, traverse, neighbors, brain.feedback.

link is included because the returned edge ID is the only handle for follow-up neighbors/traverse calls; short-form IDs risk prefix collision at scale (~65K edges can share an 8-char prefix).

brain.feedback is included because callers chain target_id from the response back into subsequent feedback or profile queries; an 8-char prefix is ambiguous and defeats the acknowledged-ID contract (#545).

Trait Implementations§

Source§

impl Clone for VerbPresentationPolicy

Source§

fn clone(&self) -> VerbPresentationPolicy

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Copy for VerbPresentationPolicy

Source§

impl Debug for VerbPresentationPolicy

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Default for VerbPresentationPolicy

Source§

fn default() -> VerbPresentationPolicy

Returns the “default value” for a type. Read more
Source§

impl Eq for VerbPresentationPolicy

Source§

impl PartialEq for VerbPresentationPolicy

Source§

fn eq(&self, other: &VerbPresentationPolicy) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl StructuralPartialEq for VerbPresentationPolicy

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.