pub struct DomainInput { /* private fields */ }Expand description
Domain InputSource implementation (skeleton).
Implementations§
Source§impl DomainInput
impl DomainInput
pub fn new(client: DomainClient) -> Self
Trait Implementations§
Source§impl Clone for DomainInput
impl Clone for DomainInput
Source§fn clone(&self) -> DomainInput
fn clone(&self) -> DomainInput
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl InputSource for DomainInput
impl InputSource for DomainInput
Source§fn get_bytes_by_cid<'life0, 'life1, 'async_trait>(
&'life0 self,
cid: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<Vec<u8>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn get_bytes_by_cid<'life0, 'life1, 'async_trait>(
&'life0 self,
cid: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<Vec<u8>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Fetch object bytes by CID.
Source§fn materialize_cid_to_temp<'life0, 'life1, 'async_trait>(
&'life0 self,
cid: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<PathBuf>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn materialize_cid_to_temp<'life0, 'life1, 'async_trait>(
&'life0 self,
cid: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<PathBuf>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Materialize CID to a temporary file path and return its location.
Source§fn materialize_cid_with_meta<'life0, 'life1, 'async_trait>(
&'life0 self,
cid: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<MaterializedInput>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn materialize_cid_with_meta<'life0, 'life1, 'async_trait>(
&'life0 self,
cid: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<MaterializedInput>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Materialize CID and include optional metadata describing the source artifact.
Auto Trait Implementations§
impl Freeze for DomainInput
impl !RefUnwindSafe for DomainInput
impl Send for DomainInput
impl Sync for DomainInput
impl Unpin for DomainInput
impl !UnwindSafe for DomainInput
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