pub struct IdentifierTypeData {
pub key: String,
pub value: String,
}
Expand description
A struct representing the key-value pairs of an identifier’s type data.
Fields§
§key: String
The key of the IdentifierTypeData object.
value: String
The value of the IdentifierTypeData object.
Implementations§
Source§impl IdentifierTypeData
impl IdentifierTypeData
Sourcepub fn new(key: &str, value: &str) -> Self
pub fn new(key: &str, value: &str) -> Self
Creates a new IdentifierTypeData object
§Arguments
key
- The key of the IdentifierTypeData objectvalue
- The value of the IdentifierTypeData object
§Example
use uniqueid::IdentifierTypeData;
let data = IdentifierTypeData::new("key", "value");
assert_eq!(data.key, "key");
assert_eq!(data.value, "value");
§Returns
- IdentifierTypeData - The new IdentifierTypeData object
Trait Implementations§
Source§impl Clone for IdentifierTypeData
impl Clone for IdentifierTypeData
Source§fn clone(&self) -> IdentifierTypeData
fn clone(&self) -> IdentifierTypeData
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 IdentifierTypeData
impl Debug for IdentifierTypeData
Source§impl Display for IdentifierTypeData
impl Display for IdentifierTypeData
Source§impl Hash for IdentifierTypeData
impl Hash for IdentifierTypeData
Source§impl PartialEq for IdentifierTypeData
impl PartialEq for IdentifierTypeData
impl Eq for IdentifierTypeData
impl StructuralPartialEq for IdentifierTypeData
Auto Trait Implementations§
impl Freeze for IdentifierTypeData
impl RefUnwindSafe for IdentifierTypeData
impl Send for IdentifierTypeData
impl Sync for IdentifierTypeData
impl Unpin for IdentifierTypeData
impl UnwindSafe for IdentifierTypeData
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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>
Converts
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>
Converts
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