pub struct CodecContent {
pub shape: CodecShape,
pub direction: CodecDirection,
pub placement: CodecPlacement,
pub schema: Option<OwnerIdentity>,
pub byte_role: Option<OwnerIdentity>,
pub assumptions: Bounded<OwnerFact, ASSUMPTION_LIMIT>,
}Expand description
What one codec request carries beyond its captured tokens.
§Nonclaims
The schema and the byte role reach no token of the rendered surface: the schema is what the codec is projected FROM and the shape is what it is written FOR, and the framing is this home’s whatever the bytes are called. They travel so an explanation can name them and a caller can join the surface back to the declaration it answers to.
Fields§
§shape: CodecShapeThe declared shape the two roads are written over.
direction: CodecDirectionWhich of the two roads the surface carries.
placement: CodecPlacementThe shape the rendered surface lands in.
schema: Option<OwnerIdentity>The schema the codec is projected from, where the caller minted one.
byte_role: Option<OwnerIdentity>The byte role naming which bytes these are, where the caller minted one.
assumptions: Bounded<OwnerFact, ASSUMPTION_LIMIT>The owner facts this projection assumes.
Trait Implementations§
Source§impl CanonicalContent for CodecContent
impl CanonicalContent for CodecContent
Source§impl Clone for CodecContent
impl Clone for CodecContent
Source§fn clone(&self) -> CodecContent
fn clone(&self) -> CodecContent
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 moreSource§impl Debug for CodecContent
impl Debug for CodecContent
impl Eq for CodecContent
Source§impl Hash for CodecContent
impl Hash for CodecContent
Source§impl PartialEq for CodecContent
impl PartialEq for CodecContent
impl StructuralPartialEq for CodecContent
Auto Trait Implementations§
impl Freeze for CodecContent
impl RefUnwindSafe for CodecContent
impl Send for CodecContent
impl Sync for CodecContent
impl Unpin for CodecContent
impl UnsafeUnpin for CodecContent
impl UnwindSafe for CodecContent
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