Skip to main content

FileSchema

Trait FileSchema 

Source
pub trait FileSchema {
    const NAME: &str;
    const PACKAGE: &str;
    const EXTERN_PATH: &str;

    // Required method
    fn file_schema() -> ProtoFile;
}
Expand description

Trait that can generate a ProtoFile.

Implemented by the unit structs generated by the define_proto_file macro.

Required Associated Constants§

Required Methods§

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§