Protocol Buffers - Google's data interchange format (grpc依赖)
https://developers.google.com/protocol-buffers/
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
23 lines
1.0 KiB
23 lines
1.0 KiB
// Protocol Buffers - Google's data interchange format |
|
// Copyright 2024 Google LLC. All rights reserved. |
|
// |
|
// Use of this source code is governed by a BSD-style |
|
// license that can be found in the LICENSE file or at |
|
// https://developers.google.com/open-source/licenses/bsd |
|
|
|
//! Prelude for the Protobuf Rust API. |
|
//! |
|
//! This module contains only the proto! macro and traits which define very |
|
//! common fns that on messages (fns that would be methods on a base class in |
|
//! other languages). |
|
//! |
|
//! All traits here have `Proto` prefixed on them, as the intent of this prelude |
|
//! is to make the methods callable on message instances: if the traits are |
|
//! named for generic reasons, they should be explicitly imported from the |
|
//! `protobuf::` crate instead. |
|
|
|
pub use crate::{ |
|
proto, AsMut as ProtoAsMut, AsView as ProtoAsView, Clear as ProtoClear, |
|
ClearAndParse as ProtoClearAndParse, IntoMut as ProtoIntoMut, IntoView as ProtoIntoView, |
|
MergeFrom as ProtoMergeFrom, Parse as ProtoParse, Serialize as ProtoSerialize, |
|
};
|
|
|