Enum google_api_proto::google::datastore::v1::key::path_element::IdType
source · pub enum IdType {
Id(i64),
Name(String),
}
Expand description
The type of ID.
Variants§
Id(i64)
The auto-allocated ID of the entity.
Never equal to zero. Values less than zero are discouraged and may not be supported in the future.
Name(String)
The name of the entity.
A name matching regex __.*__
is reserved/read-only.
A name must not be more than 1500 bytes when UTF-8 encoded.
Cannot be ""
.
Must be valid UTF-8 bytes. Legacy values that are not valid UTF-8 are
encoded as __bytes<X>__
where <X>
is the base-64 encoding of the
bytes.
Implementations§
source§impl IdType
impl IdType
sourcepub fn merge<B>(
field: &mut Option<IdType>,
tag: u32,
wire_type: WireType,
buf: &mut B,
ctx: DecodeContext
) -> Result<(), DecodeError>where
B: Buf,
pub fn merge<B>(
field: &mut Option<IdType>,
tag: u32,
wire_type: WireType,
buf: &mut B,
ctx: DecodeContext
) -> Result<(), DecodeError>where
B: Buf,
Decodes an instance of the message from a buffer, and merges it into self.
sourcepub fn encoded_len(&self) -> usize
pub fn encoded_len(&self) -> usize
Returns the encoded length of the message without a length delimiter.
Trait Implementations§
source§impl PartialEq for IdType
impl PartialEq for IdType
impl StructuralPartialEq for IdType
Auto Trait Implementations§
impl Freeze for IdType
impl RefUnwindSafe for IdType
impl Send for IdType
impl Sync for IdType
impl Unpin for IdType
impl UnwindSafe for IdType
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T
in a tonic::Request