pub struct PathElement {
pub id: Option<i64>,
pub kind: Option<String>,
pub name: Option<String>,
}
Expand description
A (kind, ID/name) pair used to construct a key path. If either name or ID is set, the element is complete. If neither is set, the element is incomplete.
This type is not used in any activity, and only used as part of another schema.
Fields§
§id: Option<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.
kind: Option<String>
The kind of the entity. A kind matching regex __.*__
is reserved/read-only. A kind must not contain 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__
where `` is the base-64 encoding of the bytes.
name: Option<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__
where `` is the base-64 encoding of the bytes.
Trait Implementations§
Source§impl Clone for PathElement
impl Clone for PathElement
Source§fn clone(&self) -> PathElement
fn clone(&self) -> PathElement
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for PathElement
impl Debug for PathElement
Source§impl Default for PathElement
impl Default for PathElement
Source§fn default() -> PathElement
fn default() -> PathElement
Source§impl<'de> Deserialize<'de> for PathElement
impl<'de> Deserialize<'de> for PathElement
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Source§impl Serialize for PathElement
impl Serialize for PathElement
impl Part for PathElement
Auto Trait Implementations§
impl Freeze for PathElement
impl RefUnwindSafe for PathElement
impl Send for PathElement
impl Sync for PathElement
impl Unpin for PathElement
impl UnwindSafe for PathElement
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more