pub struct RawDoc {
pub path_hint: Option<String>,
pub media_type: String,
pub bytes: Vec<u8>,
}Expand description
Raw document bytes before full parse, used for version detection.
In-memory only; not serialized on the wire.
Fields§
§path_hint: Option<String>Optional filesystem path hint for error messages and version heuristics.
media_type: StringMIME type of the raw bytes (e.g. "application/yaml").
bytes: Vec<u8>Unparsed contract source bytes.
Trait Implementations§
impl Eq for RawDoc
impl StructuralPartialEq for RawDoc
Auto Trait Implementations§
impl Freeze for RawDoc
impl RefUnwindSafe for RawDoc
impl Send for RawDoc
impl Sync for RawDoc
impl Unpin for RawDoc
impl UnsafeUnpin for RawDoc
impl UnwindSafe for RawDoc
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