pub struct Captcha {
pub id: Vec<u8>,
pub img: Vec<u8>,
pub tip: Vec<u8>,
}Fields§
§id: Vec<u8>§img: Vec<u8>§tip: Vec<u8>Trait Implementations§
Source§impl Message for Captcha
impl Message for Captcha
Source§fn descriptor(&self) -> Option<MessageDescriptor>
fn descriptor(&self) -> Option<MessageDescriptor>
Returns the
MessageDescriptor for this message, if this is not a primitive type.Source§fn compute_size(&self) -> usize
fn compute_size(&self) -> usize
Computes the number of bytes a message will take when serialized. This does not
include number of bytes required for tag+wire_format or the bytes used to represent
length of the message in case of LengthDelimited messages/types.
Source§fn serialize<W: PbBufferWriter>(&self, w: &mut W) -> Result<()>
fn serialize<W: PbBufferWriter>(&self, w: &mut W) -> Result<()>
Serializes the message to the writer.
Source§fn deserialize<B: PbBufferReader>(&mut self, buf: &mut B) -> Result<()>
fn deserialize<B: PbBufferReader>(&mut self, buf: &mut B) -> Result<()>
Reads the message from the blob reader, copying as necessary.
Source§fn compute_grpc_slices_size(&self) -> usize
fn compute_grpc_slices_size(&self) -> usize
Computes the number of bytes in all grpc slices.
This information is used to optimize memory allocations in zero-copy encoding.
Source§impl Ord for Captcha
impl Ord for Captcha
Source§impl PartialOrd for Captcha
impl PartialOrd for Captcha
Source§impl Reflection for Captcha
impl Reflection for Captcha
impl Eq for Captcha
impl StructuralPartialEq for Captcha
Auto Trait Implementations§
impl Freeze for Captcha
impl RefUnwindSafe for Captcha
impl Send for Captcha
impl Sync for Captcha
impl Unpin for Captcha
impl UnwindSafe for Captcha
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