pub struct RegisterAssetInput {Show 14 fields
pub asset_type: GqlAssetType,
pub name: String,
pub version: String,
pub description: Option<String>,
pub license: Option<String>,
pub tags: Vec<String>,
pub annotations: Vec<AnnotationInput>,
pub storage_path: String,
pub storage_backend: String,
pub storage_uri: Option<String>,
pub checksum: String,
pub checksum_algorithm: String,
pub size_bytes: Option<u64>,
pub content_type: Option<String>,
}Expand description
Input for registering a new asset
Fields§
§asset_type: GqlAssetTypeAsset type
name: StringAsset name
version: StringAsset version (semver)
description: Option<String>Optional description
license: Option<String>Optional license
Tags for categorization
annotations: Vec<AnnotationInput>Key-value annotations
storage_path: StringStorage path
storage_backend: StringStorage backend type (s3, gcs, azure, local)
storage_uri: Option<String>Optional storage URI
checksum: StringChecksum value (hex string)
checksum_algorithm: StringChecksum algorithm (SHA256, SHA3_256, BLAKE3)
size_bytes: Option<u64>File size in bytes
content_type: Option<String>Content type
Trait Implementations§
Source§impl InputType for RegisterAssetInput
impl InputType for RegisterAssetInput
Source§type RawValueType = RegisterAssetInput
type RawValueType = RegisterAssetInput
The raw type used for validator. Read more
Source§fn create_type_info(registry: &mut Registry) -> String
fn create_type_info(registry: &mut Registry) -> String
Create type information in the registry and return qualified typename.
Source§fn parse(value: Option<Value>) -> InputValueResult<Self>
fn parse(value: Option<Value>) -> InputValueResult<Self>
Parse from
Value. None represents undefined.Source§fn as_raw_value(&self) -> Option<&Self::RawValueType>
fn as_raw_value(&self) -> Option<&Self::RawValueType>
Returns a reference to the raw value.
Source§fn qualified_type_name() -> String
fn qualified_type_name() -> String
Qualified typename.
impl InputObjectType for RegisterAssetInput
Auto Trait Implementations§
impl Freeze for RegisterAssetInput
impl RefUnwindSafe for RegisterAssetInput
impl Send for RegisterAssetInput
impl Sync for RegisterAssetInput
impl Unpin for RegisterAssetInput
impl UnwindSafe for RegisterAssetInput
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
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> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§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