#[non_exhaustive]pub struct TypeReference {
pub type_name: String,
/* private fields */
}
Expand description
A reference to a message type, for use in FieldInfo.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.type_name: String
The name of the type that the annotated, generic field may represent.
If the type is in the same protobuf package, the value can be the simple
message name e.g., "MyMessage"
. Otherwise, the value must be the
fully-qualified message name e.g., "google.library.v1.Book"
.
If the type(s) are unknown to the service (e.g. the field accepts generic
user input), use the wildcard "*"
to denote this behavior.
See AIP-202 for more details.
Implementations§
Source§impl TypeReference
impl TypeReference
Trait Implementations§
Source§impl Clone for TypeReference
impl Clone for TypeReference
Source§fn clone(&self) -> TypeReference
fn clone(&self) -> TypeReference
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 TypeReference
impl Debug for TypeReference
Source§impl Default for TypeReference
impl Default for TypeReference
Source§fn default() -> TypeReference
fn default() -> TypeReference
Returns the “default value” for a type. Read more
Source§impl Message for TypeReference
impl Message for TypeReference
Source§impl PartialEq for TypeReference
impl PartialEq for TypeReference
impl StructuralPartialEq for TypeReference
Auto Trait Implementations§
impl Freeze for TypeReference
impl RefUnwindSafe for TypeReference
impl Send for TypeReference
impl Sync for TypeReference
impl Unpin for TypeReference
impl UnwindSafe for TypeReference
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