pub enum GeneratedFileKind {
Owned,
View,
Oneof,
ViewOneof,
Ext,
PackageMod,
}Expand description
Kind of GeneratedFile. The five content kinds are 1:1 with input
.proto files; PackageMod is 1:1 with packages.
Build integrations only need to wire up PackageMod
entries — the per-proto content kinds are reached via include! from
the stitcher and need only be written to disk alongside it.
Variants§
Owned
Owned message structs and enums (<stem>.rs).
View
View structs (<stem>.__view.rs).
Oneof
Owned oneof enums (<stem>.__oneof.rs).
ViewOneof
View oneof enums (<stem>.__view_oneof.rs).
Ext
File-level extension consts (<stem>.__ext.rs).
PackageMod
Per-package stitcher (<dotted.pkg>.mod.rs). The only file build
systems need to wire up directly.
Trait Implementations§
Source§impl Clone for GeneratedFileKind
impl Clone for GeneratedFileKind
Source§fn clone(&self) -> GeneratedFileKind
fn clone(&self) -> GeneratedFileKind
Returns a duplicate 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 GeneratedFileKind
impl Debug for GeneratedFileKind
Source§impl PartialEq for GeneratedFileKind
impl PartialEq for GeneratedFileKind
impl Copy for GeneratedFileKind
impl Eq for GeneratedFileKind
impl StructuralPartialEq for GeneratedFileKind
Auto Trait Implementations§
impl Freeze for GeneratedFileKind
impl RefUnwindSafe for GeneratedFileKind
impl Send for GeneratedFileKind
impl Sync for GeneratedFileKind
impl Unpin for GeneratedFileKind
impl UnsafeUnpin for GeneratedFileKind
impl UnwindSafe for GeneratedFileKind
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