pub struct AssetInfo {
pub name: String,
pub owners: Option<Vec<String>>,
pub description: Option<String>,
pub created: DateTime<Utc>,
pub access: AccessKind,
}
Expand description
Defines a single AssetInfo file that describes a dataset but for a user-facing user.
Fields§
§name: String
Defines the name (=identifier) of the AssetInfo. Must be unique across the instance.
owners: Option<Vec<String>>
The list of owners of this asset. This is not the domains, but rather the physical people who added it and such.
description: Option<String>
A (short) description of the asset.
created: DateTime<Utc>
The created timestamp of the asset.
access: AccessKind
Defines the way how to access & distribute this asset to containers.
Implementations§
source§impl AssetInfo
impl AssetInfo
sourcepub fn from_reader<R: Read>(reader: R) -> Result<Self, AssetInfoError>
pub fn from_reader<R: Read>(reader: R) -> Result<Self, AssetInfoError>
Constructor for the AssetInfo that reads it from the given reader.
§Generic arguments
R
: The read-capable type to read from.
§Arguments
reader
: The reader from which we will read the AssetInfo.
§Returns
A new AssetInfo instance representing the asset described in the given reader.
§Errors
This function errors if we could not read or parse the reader.
sourcepub fn into_data_info(self, location: impl Into<String>) -> DataInfo
pub fn into_data_info(self, location: impl Into<String>) -> DataInfo
Trait Implementations§
source§impl<'de> Deserialize<'de> for AssetInfo
impl<'de> Deserialize<'de> for AssetInfo
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for AssetInfo
impl RefUnwindSafe for AssetInfo
impl Send for AssetInfo
impl Sync for AssetInfo
impl Unpin for AssetInfo
impl UnwindSafe for AssetInfo
Blanket Implementations§
source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)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> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T
in a tonic::Request