pub struct AcceptanceRead {
pub value_digest: ContentDigest,
/* private fields */
}Expand description
A read can be supplied by a host without claiming an extraction-step origin.
Fields§
§value_digest: ContentDigestImplementations§
Source§impl AcceptanceRead
impl AcceptanceRead
Sourcepub fn new(
ty: &ExtractionType,
value_digest: ContentDigest,
value: Option<Value>,
) -> Self
pub fn new( ty: &ExtractionType, value_digest: ContentDigest, value: Option<Value>, ) -> Self
Applies the retention rule of spec 038, 3.12.1 and R-19 to the value read (3.12.2), preserving its digest. Core must use this constructor.
pub fn value(&self) -> Option<&Value>
Trait Implementations§
Source§impl Clone for AcceptanceRead
impl Clone for AcceptanceRead
Source§impl Debug for AcceptanceRead
impl Debug for AcceptanceRead
Source§impl<'de> Deserialize<'de> for AcceptanceRead
impl<'de> Deserialize<'de> for AcceptanceRead
Source§fn deserialize<D: Deserializer<'de>>(d: D) -> Result<Self, D::Error>
fn deserialize<D: Deserializer<'de>>(d: D) -> Result<Self, D::Error>
Deserialize this value from the given Serde deserializer. Read more
Source§impl JsonSchema for AcceptanceRead
impl JsonSchema for AcceptanceRead
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 AcceptanceRead
impl PartialEq for AcceptanceRead
Source§impl Serialize for AcceptanceRead
impl Serialize for AcceptanceRead
impl StructuralPartialEq for AcceptanceRead
Auto Trait Implementations§
impl Freeze for AcceptanceRead
impl RefUnwindSafe for AcceptanceRead
impl Send for AcceptanceRead
impl Sync for AcceptanceRead
impl Unpin for AcceptanceRead
impl UnsafeUnpin for AcceptanceRead
impl UnwindSafe for AcceptanceRead
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