pub struct ModelInfo<T> {
pub model_id: String,
pub owner: Addr,
pub model_uri: String,
pub extension: T,
}Fields§
§model_id: StringId of this model
owner: AddrThe owner of the newly shoe model
model_uri: String§extension: TTrait Implementations§
Source§impl<'de, T> Deserialize<'de> for ModelInfo<T>where
T: Deserialize<'de>,
impl<'de, T> Deserialize<'de> for ModelInfo<T>where
T: Deserialize<'de>,
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
Source§impl<'a, T> IndexList<ModelInfo<T>> for ModelIndexes<'a, T>
impl<'a, T> IndexList<ModelInfo<T>> for ModelIndexes<'a, T>
Source§impl<T: JsonSchema> JsonSchema for ModelInfo<T>
impl<T: JsonSchema> JsonSchema for ModelInfo<T>
Source§fn schema_name() -> String
fn schema_name() -> String
The name of the generated JSON Schema. Read more
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn is_referenceable() -> bool
fn is_referenceable() -> bool
Whether JSON Schemas generated for this type should be re-used where possible using the
$ref keyword. Read moreimpl<T: PartialEq> StructuralPartialEq for ModelInfo<T>
Auto Trait Implementations§
impl<T> Freeze for ModelInfo<T>where
T: Freeze,
impl<T> RefUnwindSafe for ModelInfo<T>where
T: RefUnwindSafe,
impl<T> Send for ModelInfo<T>where
T: Send,
impl<T> Sync for ModelInfo<T>where
T: Sync,
impl<T> Unpin for ModelInfo<T>where
T: Unpin,
impl<T> UnsafeUnpin for ModelInfo<T>where
T: UnsafeUnpin,
impl<T> UnwindSafe for ModelInfo<T>where
T: UnwindSafe,
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