pub enum Representation {
Full,
Compact,
Reference,
}Expand description
How a frame carries its content (CGEP lifecycle build prompt, §“ContextFrame representations”).
full: canonical inlinecontentis required.compact: inline content, inline hash, canonical hash, aTransformidentity, and aContentRefare all required.reference: inline content is absent; aContentRefandcanonical_content_hashare required; the inline content hash and transform are omitted.
A full frame omits this field on the wire (is_full) so
legacy frames round-trip byte-for-byte.
Variants§
Implementations§
Trait Implementations§
Source§impl Clone for Representation
impl Clone for Representation
Source§fn clone(&self) -> Representation
fn clone(&self) -> Representation
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 moreimpl Copy for Representation
Source§impl Debug for Representation
impl Debug for Representation
Source§impl Default for Representation
impl Default for Representation
Source§fn default() -> Representation
fn default() -> Representation
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for Representation
impl<'de> Deserialize<'de> for Representation
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
impl Eq for Representation
Source§impl PartialEq for Representation
impl PartialEq for Representation
Source§impl Serialize for Representation
impl Serialize for Representation
impl StructuralPartialEq for Representation
Auto Trait Implementations§
impl Freeze for Representation
impl RefUnwindSafe for Representation
impl Send for Representation
impl Sync for Representation
impl Unpin for Representation
impl UnsafeUnpin for Representation
impl UnwindSafe for Representation
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