pub trait Scopeable {
type Id: Clone + Serialize + for<'de> Deserialize<'de>;
// Required methods
fn id(&self) -> Self::Id;
fn summary(&self) -> String;
fn full_token_estimate(&self) -> u64;
}Expand description
Trait for types that can be scoped to different extraction intents.
Required Associated Types§
Sourcetype Id: Clone + Serialize + for<'de> Deserialize<'de>
type Id: Clone + Serialize + for<'de> Deserialize<'de>
The identifier type for this object.
Required Methods§
Sourcefn full_token_estimate(&self) -> u64
fn full_token_estimate(&self) -> u64
Estimated token count for the full representation.