pub enum PathSegment {
Null,
Bool(bool),
Uint(u64),
Int(i64),
String(String),
Bytes(Vec<u8>),
}
Expand description
A segment in an entity Path.
Variants§
Trait Implementations§
Source§impl BorshDeserialize for PathSegment
impl BorshDeserialize for PathSegment
fn deserialize_reader<__R>(reader: &mut __R) -> Result<PathSegment, Error>where
__R: Read,
Source§fn deserialize(buf: &mut &[u8]) -> Result<Self, Error>
fn deserialize(buf: &mut &[u8]) -> Result<Self, Error>
Deserializes this instance from a given slice of bytes.
Updates the buffer to point at the remaining bytes.
Source§fn try_from_slice(v: &[u8]) -> Result<Self, Error>
fn try_from_slice(v: &[u8]) -> Result<Self, Error>
Deserialize this instance from a slice of bytes.
fn try_from_reader<R>(reader: &mut R) -> Result<Self, Error>where
R: Read,
Source§impl BorshSerialize for PathSegment
impl BorshSerialize for PathSegment
Source§impl Clone for PathSegment
impl Clone for PathSegment
Source§fn clone(&self) -> PathSegment
fn clone(&self) -> PathSegment
Returns a copy 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 PathSegment
impl Debug for PathSegment
Source§impl EnumExt for PathSegment
impl EnumExt for PathSegment
Source§fn deserialize_variant<__R>(
reader: &mut __R,
variant_tag: u8,
) -> Result<PathSegment, Error>where
__R: Read,
fn deserialize_variant<__R>(
reader: &mut __R,
variant_tag: u8,
) -> Result<PathSegment, Error>where
__R: Read,
Deserialises given variant of an enum from the reader. Read more
Source§impl<'a> From<&'a str> for PathSegment
impl<'a> From<&'a str> for PathSegment
Source§fn from(value: &'a str) -> PathSegment
fn from(value: &'a str) -> PathSegment
Converts to this type from the input type.
Source§impl From<()> for PathSegment
impl From<()> for PathSegment
Source§fn from(_: ()) -> PathSegment
fn from(_: ()) -> PathSegment
Converts to this type from the input type.
Source§impl From<String> for PathSegment
impl From<String> for PathSegment
Source§fn from(value: String) -> PathSegment
fn from(value: String) -> PathSegment
Converts to this type from the input type.
Source§impl From<bool> for PathSegment
impl From<bool> for PathSegment
Source§fn from(value: bool) -> PathSegment
fn from(value: bool) -> PathSegment
Converts to this type from the input type.
Source§impl From<i64> for PathSegment
impl From<i64> for PathSegment
Source§fn from(value: i64) -> PathSegment
fn from(value: i64) -> PathSegment
Converts to this type from the input type.
Source§impl From<u64> for PathSegment
impl From<u64> for PathSegment
Source§fn from(value: u64) -> PathSegment
fn from(value: u64) -> PathSegment
Converts to this type from the input type.
Source§impl Hash for PathSegment
impl Hash for PathSegment
Source§impl Ord for PathSegment
impl Ord for PathSegment
Source§fn cmp(&self, other: &PathSegment) -> Ordering
fn cmp(&self, other: &PathSegment) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for PathSegment
impl PartialEq for PathSegment
Source§impl PartialOrd for PathSegment
impl PartialOrd for PathSegment
impl Eq for PathSegment
impl StructuralPartialEq for PathSegment
Auto Trait Implementations§
impl Freeze for PathSegment
impl RefUnwindSafe for PathSegment
impl Send for PathSegment
impl Sync for PathSegment
impl Unpin for PathSegment
impl UnwindSafe for PathSegment
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.