Skip to content

Commit

Permalink
address doc failures
Browse files Browse the repository at this point in the history
  • Loading branch information
cynecx committed Dec 7, 2024
1 parent e5b5ea8 commit b3f6b79
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions prost-types/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,24 +9,27 @@
//!
//! ## Any
//!
//! The well-known [`Any`] type contains an arbitrary serialized message along with a URL that
//! describes the type of the serialized message. Every message that also implements [`Name`]
//! can be serialized to and deserialized from [`Any`].
//! The well-known [`Any`](protobuf::Any) type contains an arbitrary serialized message along
//! with a URL that describes the type of the serialized message.
//! Every message that also implements [`Name`] can be serialized to and deserialized
//! from [`Any`](protobuf::Any).
//!
//! ### Serialization
//!
//! A message can be serialized using [`Any::from_msg`].
//! A message can be serialized using [`Any::from_msg`](protobuf::Any::from_msg).
//!
//! ```rust
//! # use crate::protobuf::Any;
//! let message = Timestamp::date(2000, 1, 1).unwrap();
//! let any = Any::from_msg(&message).unwrap();
//! ```
//!
//! ### Deserialization
//!
//! A message can be deserialized using [`Any::to_msg`].
//! A message can be deserialized using [`Any::to_msg`](protobuf::Any::to_msg).
//!
//! ```rust
//! # use crate::protobuf::Any;
//! # let message = Timestamp::date(2000, 1, 1).unwrap();
//! # let any = Any::from_msg(&message).unwrap();
//! #
Expand Down

0 comments on commit b3f6b79

Please sign in to comment.