pub struct IngestFileContent { /* private fields */ }Expand description
Safe source facts and readable bytes for one Datafile ingest.
Implementations§
Source§impl IngestFileContent
impl IngestFileContent
pub fn new( source_file_name: impl Into<String>, media_type: Option<String>, content_length: Option<u64>, declared_digest: Option<String>, reader: impl Read + Send + 'static, ) -> Self
pub fn source_file_name(&self) -> &str
pub fn media_type(&self) -> Option<&str>
pub fn content_length(&self) -> Option<u64>
pub fn declared_digest(&self) -> Option<&str>
pub fn reader_mut(&mut self) -> &mut (dyn Read + Send)
pub fn into_reader(self) -> Box<dyn Read + Send>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for IngestFileContent
impl !RefUnwindSafe for IngestFileContent
impl Send for IngestFileContent
impl !Sync for IngestFileContent
impl Unpin for IngestFileContent
impl UnsafeUnpin for IngestFileContent
impl !UnwindSafe for IngestFileContent
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