pub struct InstanceDocumentContent {
pub name: String,
pub instance_of: Link,
pub notebook: Notebook<InstanceJudgment>,
pub version: String,
}Expand description
This is the content of an instance document, presenting an instance of the
model that the document’s instanceOf link points to.
Not yet a variant of Document: wiring into the document enum (and the
frontend) is deferred until instance notebooks elaborate.
Fields§
§name: String§instance_of: Link§notebook: Notebook<InstanceJudgment>§version: StringTrait Implementations§
Source§impl Debug for InstanceDocumentContent
impl Debug for InstanceDocumentContent
Source§impl<'de> Deserialize<'de> for InstanceDocumentContent
impl<'de> Deserialize<'de> for InstanceDocumentContent
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 From<InstanceDocumentContent> for JsValuewhere
InstanceDocumentContent: Serialize,
impl From<InstanceDocumentContent> for JsValuewhere
InstanceDocumentContent: Serialize,
Source§fn from(value: InstanceDocumentContent) -> Self
fn from(value: InstanceDocumentContent) -> Self
Converts to this type from the input type.
Source§impl FromWasmAbi for InstanceDocumentContentwhere
Self: DeserializeOwned,
impl FromWasmAbi for InstanceDocumentContentwhere
Self: DeserializeOwned,
Source§impl IntoWasmAbi for &InstanceDocumentContentwhere
InstanceDocumentContent: Serialize,
impl IntoWasmAbi for &InstanceDocumentContentwhere
InstanceDocumentContent: Serialize,
Source§impl IntoWasmAbi for InstanceDocumentContentwhere
InstanceDocumentContent: Serialize,
impl IntoWasmAbi for InstanceDocumentContentwhere
InstanceDocumentContent: Serialize,
Source§impl OptionFromWasmAbi for InstanceDocumentContentwhere
Self: DeserializeOwned,
impl OptionFromWasmAbi for InstanceDocumentContentwhere
Self: DeserializeOwned,
Source§impl PartialEq for InstanceDocumentContent
impl PartialEq for InstanceDocumentContent
Source§impl RefFromWasmAbi for InstanceDocumentContentwhere
Self: DeserializeOwned,
impl RefFromWasmAbi for InstanceDocumentContentwhere
Self: DeserializeOwned,
Source§type Abi = <JsType as RefFromWasmAbi>::Abi
type Abi = <JsType as RefFromWasmAbi>::Abi
The Wasm ABI type references to
Self are recovered from.Source§type Anchor = SelfOwner<InstanceDocumentContent>
type Anchor = SelfOwner<InstanceDocumentContent>
The type that holds the reference to
Self for the duration of the
invocation of the function that has an &Self parameter. This is
required to ensure that the lifetimes don’t persist beyond one function
call, and so that they remain anonymous.Source§impl Serialize for InstanceDocumentContent
impl Serialize for InstanceDocumentContent
Source§impl Tsify for InstanceDocumentContent
impl Tsify for InstanceDocumentContent
const DECL: &'static str = "/**\n * This is the content of an instance document, presenting an instance of the\n * model that the document\\\'s `instanceOf` link points to.\n *\n * Not yet a variant of [`Document`]: wiring into the document enum (and the\n * frontend) is deferred until instance notebooks elaborate.\n */\nexport interface InstanceDocumentContent {\n name: string;\n instanceOf: Link;\n notebook: Notebook<InstanceJudgment>;\n version: string;\n}"
const SERIALIZATION_CONFIG: SerializationConfig
type JsType = JsType
fn into_js(&self) -> Result<Self::JsType, Error>where
Self: Serialize,
fn from_js<T>(js: T) -> Result<Self, Error>
Source§impl VectorFromWasmAbi for InstanceDocumentContentwhere
Self: DeserializeOwned,
impl VectorFromWasmAbi for InstanceDocumentContentwhere
Self: DeserializeOwned,
type Abi = <JsType as VectorFromWasmAbi>::Abi
unsafe fn vector_from_abi(js: Self::Abi) -> Box<[Self]>
Source§impl VectorIntoWasmAbi for InstanceDocumentContentwhere
InstanceDocumentContent: Serialize,
impl VectorIntoWasmAbi for InstanceDocumentContentwhere
InstanceDocumentContent: Serialize,
type Abi = <JsType as VectorIntoWasmAbi>::Abi
fn vector_into_abi(vector: Box<[Self]>) -> Self::Abi
Source§impl WasmDescribeVector for InstanceDocumentContent
impl WasmDescribeVector for InstanceDocumentContent
impl Eq for InstanceDocumentContent
impl StructuralPartialEq for InstanceDocumentContent
Auto Trait Implementations§
impl Freeze for InstanceDocumentContent
impl RefUnwindSafe for InstanceDocumentContent
impl Send for InstanceDocumentContent
impl Sync for InstanceDocumentContent
impl Unpin for InstanceDocumentContent
impl UnwindSafe for InstanceDocumentContent
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§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> ReturnWasmAbi for Twhere
T: IntoWasmAbi,
impl<T> ReturnWasmAbi for Twhere
T: IntoWasmAbi,
Source§type Abi = <T as IntoWasmAbi>::Abi
type Abi = <T as IntoWasmAbi>::Abi
Same as
IntoWasmAbi::AbiSource§fn return_abi(self) -> <T as ReturnWasmAbi>::Abi
fn return_abi(self) -> <T as ReturnWasmAbi>::Abi
Same as
IntoWasmAbi::into_abi, except that it may throw and never
return in the case of Err.