pub enum ProtobufDocument {
File(Box<ProtoFile>),
Generated(Vec<ProtoGeneratedMarker>),
}Expand description
Persistable protobuf contract payload produced from one source-owned artifact.
Variants§
File(Box<ProtoFile>)
Declarative .proto file.
Generated(Vec<ProtoGeneratedMarker>)
Exact method markers from an explicitly generated source file.
Trait Implementations§
Source§impl Clone for ProtobufDocument
impl Clone for ProtobufDocument
Source§fn clone(&self) -> ProtobufDocument
fn clone(&self) -> ProtobufDocument
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 ProtobufDocument
impl Debug for ProtobufDocument
Source§impl<'de> Deserialize<'de> for ProtobufDocument
impl<'de> Deserialize<'de> for ProtobufDocument
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
impl Eq for ProtobufDocument
Source§impl PartialEq for ProtobufDocument
impl PartialEq for ProtobufDocument
Source§impl Serialize for ProtobufDocument
impl Serialize for ProtobufDocument
impl StructuralPartialEq for ProtobufDocument
Auto Trait Implementations§
impl Freeze for ProtobufDocument
impl RefUnwindSafe for ProtobufDocument
impl Send for ProtobufDocument
impl Sync for ProtobufDocument
impl Unpin for ProtobufDocument
impl UnsafeUnpin for ProtobufDocument
impl UnwindSafe for ProtobufDocument
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<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.