pub struct BuildItem {
pub data: Vec<u8>,
pub magic: KnownMagic,
pub content_type: ContentType,
pub content_encoding: ContentEncoding,
pub content_language: ContentLanguage,
}Expand description
Temporary housing for raw data before it is converted into a RainMetaDocumentV1Item.
Fields§
§data: Vec<u8>Raw data. Ostensibly this is the content of a file.
magic: KnownMagicMagic number taken from build options.
content_type: ContentTypeContent type taken from build options.
content_encoding: ContentEncodingContent encoding taken from build options.
content_language: ContentLanguageContent language taken from build options.
Trait Implementations§
Source§impl TryFrom<&BuildItem> for RainMetaDocumentV1Item
Moving from a BuildItem to a RainMetaDocumentV1Item requires normalization
according to the magic number and encoding from the build options.
impl TryFrom<&BuildItem> for RainMetaDocumentV1Item
Moving from a BuildItem to a RainMetaDocumentV1Item requires normalization according to the magic number and encoding from the build options.
Auto Trait Implementations§
impl Freeze for BuildItem
impl RefUnwindSafe for BuildItem
impl Send for BuildItem
impl Sync for BuildItem
impl Unpin for BuildItem
impl UnwindSafe for BuildItem
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more