Struct dfraw_json_parser::seed_material::SeedMaterial
source · pub struct SeedMaterial { /* private fields */ }Implementations§
source§impl SeedMaterial
impl SeedMaterial
pub fn is_empty(&self) -> bool
pub fn from_value(value: &str) -> SeedMaterial
Trait Implementations§
source§impl Clone for SeedMaterial
impl Clone for SeedMaterial
source§fn clone(&self) -> SeedMaterial
fn clone(&self) -> SeedMaterial
Returns a copy of the value. Read more
1.0.0 · 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 SeedMaterial
impl Debug for SeedMaterial
source§impl Default for SeedMaterial
impl Default for SeedMaterial
source§fn default() -> SeedMaterial
fn default() -> SeedMaterial
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for SeedMaterial
impl<'de> Deserialize<'de> for SeedMaterial
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 Serialize for SeedMaterial
impl Serialize for SeedMaterial
source§impl TS for SeedMaterial
impl TS for SeedMaterial
const EXPORT_TO: Option<&'static str> = _
source§fn decl() -> String
fn decl() -> String
Declaration of this type, e.g.
interface User { user_id: number, ... }.
This function will panic if the type has no declaration.source§fn inline() -> String
fn inline() -> String
Formats this types definition in TypeScript, e.g
{ user_id: number }.
This function will panic if the type cannot be inlined.source§fn inline_flattened() -> String
fn inline_flattened() -> String
Flatten an type declaration.
This function will panic if the type cannot be flattened.
This function will panic if the type cannot be flattened.
source§fn dependencies() -> Vec<Dependency>where
Self: 'static,
fn dependencies() -> Vec<Dependency>where Self: 'static,
Information about types this type depends on.
This is used for resolving imports when exporting to a file.
source§fn transparent() -> bool
fn transparent() -> bool
true if this is a transparent type, e.g tuples or a list.This is used for resolving imports when using the
export! macro.source§fn name_with_type_args(args: Vec<String>) -> String
fn name_with_type_args(args: Vec<String>) -> String
Name of this type in TypeScript, with type arguments.
source§fn export() -> Result<(), ExportError>where
Self: 'static,
fn export() -> Result<(), ExportError>where Self: 'static,
Manually export this type to a file.
The output file can be specified by annotating the type with
#[ts(export_to = ".."].
By default, the filename will be derived from the types name. Read moresource§fn export_to(path: impl AsRef<Path>) -> Result<(), ExportError>where
Self: 'static,
fn export_to(path: impl AsRef<Path>) -> Result<(), ExportError>where Self: 'static,
Manually export this type to a file with a file with the specified path. This
function will ignore the
#[ts(export_to = "..)] attribute.source§fn export_to_string() -> Result<String, ExportError>where
Self: 'static,
fn export_to_string() -> Result<String, ExportError>where Self: 'static,
Manually generate bindings for this type, returning a
This function does not format the output, even if the
String.This function does not format the output, even if the
format feature is enabled.Auto Trait Implementations§
impl RefUnwindSafe for SeedMaterial
impl Send for SeedMaterial
impl Sync for SeedMaterial
impl Unpin for SeedMaterial
impl UnwindSafe for SeedMaterial
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