pub struct TextResult {
pub schema: String,
pub decision_id: String,
pub plan_id: PlanId,
pub steps: Vec<TextStep>,
pub text_origin: TextOrigin,
pub counts: TextCounts,
pub notices: Vec<TextNotice>,
}Fields§
§schema: String§decision_id: String§plan_id: PlanId§steps: Vec<TextStep>§text_origin: TextOrigin§counts: TextCounts§notices: Vec<TextNotice>Trait Implementations§
Source§impl Clone for TextResult
impl Clone for TextResult
Source§impl Debug for TextResult
impl Debug for TextResult
Source§impl<'de> Deserialize<'de> for TextResult
impl<'de> Deserialize<'de> for TextResult
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
Source§impl Document for TextResult
impl Document for TextResult
Source§const SCHEMA: &'static str = crate::schema::TEXT_RESULT
const SCHEMA: &'static str = crate::schema::TEXT_RESULT
The schema string this document carries (spec 002, 3.2.1).
Source§const LIMITS: ParseLimits = crate::limits::RECORD_V1
const LIMITS: ParseLimits = crate::limits::RECORD_V1
The limit set its bytes are scanned against (spec 002, 3.2.5).
Source§fn parse(bytes: &[u8]) -> Result<Self, DocumentError>
fn parse(bytes: &[u8]) -> Result<Self, DocumentError>
Scan, deserialize and check the schema string.
Source§fn record_digest(&self) -> Result<ContentDigest, CanonicalError>
fn record_digest(&self) -> Result<ContentDigest, CanonicalError>
sha256(SCHEMA || 0x00 || record canonical bytes) (spec 004, 3.1.6).
Equal to the identity of an identified document.Source§fn record_canonical(&self) -> Result<Vec<u8>, CanonicalError>where
Self: PartialEq,
fn record_canonical(&self) -> Result<Vec<u8>, CanonicalError>where
Self: PartialEq,
The record canonical bytes (spec 004, 5.6): the canonical bytes, with
finite fractional numbers written in shortest round-trip form.
Source§impl JsonSchema for TextResult
impl JsonSchema for TextResult
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 TextResult
impl PartialEq for TextResult
Source§impl Serialize for TextResult
impl Serialize for TextResult
impl StructuralPartialEq for TextResult
Auto Trait Implementations§
impl Freeze for TextResult
impl RefUnwindSafe for TextResult
impl Send for TextResult
impl Sync for TextResult
impl Unpin for TextResult
impl UnsafeUnpin for TextResult
impl UnwindSafe for TextResult
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