Struct protobuf::well_known_types::Api
source · [−]pub struct Api {
pub name: String,
pub methods: RepeatedField<Method>,
pub options: RepeatedField<Option>,
pub version: String,
pub source_context: SingularPtrField<SourceContext>,
pub mixins: RepeatedField<Mixin>,
pub syntax: Syntax,
pub unknown_fields: UnknownFields,
pub cached_size: CachedSize,
}
Fields
name: String
methods: RepeatedField<Method>
options: RepeatedField<Option>
version: String
source_context: SingularPtrField<SourceContext>
mixins: RepeatedField<Mixin>
syntax: Syntax
unknown_fields: UnknownFields
cached_size: CachedSize
Implementations
Trait Implementations
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
True iff all required fields are initialized.
Always returns true
for protobuf 3. Read more
Update this message object with fields read from given stream.
Compute and cache size of this message and all nested messages
Write message to the stream. Read more
Get size previously computed by compute_size
.
Get a reference to unknown fields.
Get a mutable reference to unknown fields.
View self as mutable Any
.
Message descriptor for this message, used for reflection.
Get message descriptor for message type. Read more
Return a pointer to default immutable message with static lifetime. Read more
Parse message from stream.
Write the message to the stream. Read more
Write the message to the stream prepending the message with message length encoded as varint. Read more
Write the message to the vec, prepend the message with message length encoded as varint. Read more
Update this message object with fields read from given stream.
Parse message from reader. Parse stops on EOF or when error encountered. Read more
Parse message from byte array.
Parse message from Bytes
object.
Resulting message may share references to the passed bytes object. Read more
Check if all required fields of this object are initialized.
Write the message to the writer.
Write the message to bytes vec.
Write the message to bytes vec.
Write the message to the writer, prepend the message with message length encoded as varint. Read more
Write the message to the bytes vec, prepend the message with message length encoded as varint. Read more
Auto Trait Implementations
impl RefUnwindSafe for Api
impl UnwindSafe for Api
Blanket Implementations
Mutably borrows from an owned value. Read more