Enum protobuf::UnknownValue
source · pub enum UnknownValue {
Fixed32(u32),
Fixed64(u64),
Varint(u64),
LengthDelimited(Vec<u8>),
}
Expand description
Unknown value.
See UnknownFields
for the explanations.
Variants§
Fixed32(u32)
32-bit unknown (e. g. fixed32
or float
)
Fixed64(u64)
64-bit unknown (e. g. fixed64
or double
)
Varint(u64)
Varint unknown (e. g. int32
or bool
)
LengthDelimited(Vec<u8>)
Length-delimited unknown (e. g. message
or string
)
Implementations§
source§impl UnknownValue
impl UnknownValue
sourcepub fn get_ref<'s>(&'s self) -> UnknownValueRef<'s>
pub fn get_ref<'s>(&'s self) -> UnknownValueRef<'s>
As ref
sourcepub fn sint32(i: i32) -> UnknownValue
pub fn sint32(i: i32) -> UnknownValue
Construct unknown value from sint32
value.
sourcepub fn sint64(i: i64) -> UnknownValue
pub fn sint64(i: i64) -> UnknownValue
Construct unknown value from sint64
value.
Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for UnknownValue
impl Send for UnknownValue
impl Sync for UnknownValue
impl Unpin for UnknownValue
impl UnwindSafe for UnknownValue
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