pub struct DatasetPath {
pub path: String,
pub directory: bool,
pub grantable: bool,
pub available: bool,
pub desc: String,
pub format: String,
pub examples: Vec<String>,
}Expand description
DatasetPath describes one path pattern under the data root. A segment in angle brackets is a placeholder, described by the directory entry it names. The path is the entry’s stable key.
Fields§
§path: StringPath as a manifest names it
directory: boolDirectory or file
grantable: boolWhether a manifest may name it
available: boolWhether the data this path needs is on the Ark now
desc: StringWhat it holds, when it is absent and when it fails
format: StringExact file content, or what a directory lists
examples: Vec<String>Complete example values, most typical first
Trait Implementations§
Source§impl Clone for DatasetPath
impl Clone for DatasetPath
Source§fn clone(&self) -> DatasetPath
fn clone(&self) -> DatasetPath
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 DatasetPath
impl Debug for DatasetPath
Source§impl Default for DatasetPath
impl Default for DatasetPath
impl Eq for DatasetPath
Source§impl Hash for DatasetPath
impl Hash for DatasetPath
Source§impl Message for DatasetPath
impl Message for DatasetPath
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 DatasetPath
impl PartialEq for DatasetPath
impl StructuralPartialEq for DatasetPath
Auto Trait Implementations§
impl Freeze for DatasetPath
impl RefUnwindSafe for DatasetPath
impl Send for DatasetPath
impl Sync for DatasetPath
impl Unpin for DatasetPath
impl UnsafeUnpin for DatasetPath
impl UnwindSafe for DatasetPath
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