pub struct SlotIdentifyRequest {
pub name: String,
pub size: u64,
pub chunk: Vec<u8>,
pub kinds: Vec<i32>,
}Expand description
SlotIdentifyRequest sends an ephemeral file chunk to the Ark and asks it to identify the file. Its purpose is to filter potentially huge files (e.g. a 30GB compressed whole genome sequencing) before uploading them, and to answer what a file is without uploading it at all.
Fields§
§name: StringFile name to guess the contents of
size: u64File size to guess the contents of
chunk: Vec<u8>First chunk of the file to guess the contents of
kinds: Vec<i32>Possible slots to interpret as (empty == any)
Implementations§
Trait Implementations§
Source§impl Clone for SlotIdentifyRequest
impl Clone for SlotIdentifyRequest
Source§fn clone(&self) -> SlotIdentifyRequest
fn clone(&self) -> SlotIdentifyRequest
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 moreSource§impl Debug for SlotIdentifyRequest
impl Debug for SlotIdentifyRequest
Source§impl Default for SlotIdentifyRequest
impl Default for SlotIdentifyRequest
impl Eq for SlotIdentifyRequest
Source§impl From<SlotIdentifyRequest> for Message
impl From<SlotIdentifyRequest> for Message
Source§fn from(message: SlotIdentifyRequest) -> Self
fn from(message: SlotIdentifyRequest) -> Self
Wraps a concrete payload in its corresponding message variant.
Source§impl Hash for SlotIdentifyRequest
impl Hash for SlotIdentifyRequest
Source§impl Message for SlotIdentifyRequest
impl Message for SlotIdentifyRequest
Source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
Returns the encoded length of the message without a length delimiter.
Source§fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
Encodes the message to a buffer. Read more
Source§fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Encodes the message to a newly allocated buffer.
Source§fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
Encodes the message with a length-delimiter to a buffer. Read more
Source§fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Encodes the message with a length-delimiter to a newly allocated buffer.
Source§fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Decodes an instance of the message from a buffer. Read more
Source§fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Decodes a length-delimited instance of the message from the buffer.
Source§fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
Decodes an instance of the message from a buffer, and merges it into
self. Read moreSource§fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
Decodes a length-delimited instance of the message from buffer, and
merges it into
self.Source§impl PartialEq for SlotIdentifyRequest
impl PartialEq for SlotIdentifyRequest
impl StructuralPartialEq for SlotIdentifyRequest
Auto Trait Implementations§
impl Freeze for SlotIdentifyRequest
impl RefUnwindSafe for SlotIdentifyRequest
impl Send for SlotIdentifyRequest
impl Sync for SlotIdentifyRequest
impl Unpin for SlotIdentifyRequest
impl UnsafeUnpin for SlotIdentifyRequest
impl UnwindSafe for SlotIdentifyRequest
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