Struct concordium_std::AttributeValue
source · pub struct AttributeValue { /* private fields */ }
Expand description
An attribute value. The meaning of the bytes is dependent on the type of the attribute.
Implementations
sourceimpl AttributeValue
impl AttributeValue
sourcepub fn new(data: &[u8]) -> Result<AttributeValue, NewAttributeValueError>
pub fn new(data: &[u8]) -> Result<AttributeValue, NewAttributeValueError>
Create a new Self
from a slice of bytes. The slice must have a
length of at most 31 bytes.
Trait Implementations
sourceimpl AsRef<[u8]> for AttributeValue
impl AsRef<[u8]> for AttributeValue
sourceimpl Clone for AttributeValue
impl Clone for AttributeValue
sourcefn clone(&self) -> AttributeValue
fn clone(&self) -> AttributeValue
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for AttributeValue
impl Debug for AttributeValue
sourceimpl Deserial for AttributeValue
impl Deserial for AttributeValue
sourcefn deserial<R>(source: &mut R) -> Result<AttributeValue, ParseError>where
R: Read,
fn deserial<R>(source: &mut R) -> Result<AttributeValue, ParseError>where
R: Read,
Attempt to read a structure from a given source, failing if an error
occurs during deserialization or reading. Read more
sourceimpl From<&[u8; 0]> for AttributeValue
impl From<&[u8; 0]> for AttributeValue
sourcefn from(data: &[u8; 0]) -> AttributeValue
fn from(data: &[u8; 0]) -> AttributeValue
Converts to this type from the input type.
sourceimpl From<&[u8; 1]> for AttributeValue
impl From<&[u8; 1]> for AttributeValue
sourcefn from(data: &[u8; 1]) -> AttributeValue
fn from(data: &[u8; 1]) -> AttributeValue
Converts to this type from the input type.
sourceimpl From<&[u8; 10]> for AttributeValue
impl From<&[u8; 10]> for AttributeValue
sourcefn from(data: &[u8; 10]) -> AttributeValue
fn from(data: &[u8; 10]) -> AttributeValue
Converts to this type from the input type.
sourceimpl From<&[u8; 11]> for AttributeValue
impl From<&[u8; 11]> for AttributeValue
sourcefn from(data: &[u8; 11]) -> AttributeValue
fn from(data: &[u8; 11]) -> AttributeValue
Converts to this type from the input type.
sourceimpl From<&[u8; 12]> for AttributeValue
impl From<&[u8; 12]> for AttributeValue
sourcefn from(data: &[u8; 12]) -> AttributeValue
fn from(data: &[u8; 12]) -> AttributeValue
Converts to this type from the input type.
sourceimpl From<&[u8; 13]> for AttributeValue
impl From<&[u8; 13]> for AttributeValue
sourcefn from(data: &[u8; 13]) -> AttributeValue
fn from(data: &[u8; 13]) -> AttributeValue
Converts to this type from the input type.
sourceimpl From<&[u8; 14]> for AttributeValue
impl From<&[u8; 14]> for AttributeValue
sourcefn from(data: &[u8; 14]) -> AttributeValue
fn from(data: &[u8; 14]) -> AttributeValue
Converts to this type from the input type.
sourceimpl From<&[u8; 15]> for AttributeValue
impl From<&[u8; 15]> for AttributeValue
sourcefn from(data: &[u8; 15]) -> AttributeValue
fn from(data: &[u8; 15]) -> AttributeValue
Converts to this type from the input type.
sourceimpl From<&[u8; 16]> for AttributeValue
impl From<&[u8; 16]> for AttributeValue
sourcefn from(data: &[u8; 16]) -> AttributeValue
fn from(data: &[u8; 16]) -> AttributeValue
Converts to this type from the input type.
sourceimpl From<&[u8; 17]> for AttributeValue
impl From<&[u8; 17]> for AttributeValue
sourcefn from(data: &[u8; 17]) -> AttributeValue
fn from(data: &[u8; 17]) -> AttributeValue
Converts to this type from the input type.
sourceimpl From<&[u8; 18]> for AttributeValue
impl From<&[u8; 18]> for AttributeValue
sourcefn from(data: &[u8; 18]) -> AttributeValue
fn from(data: &[u8; 18]) -> AttributeValue
Converts to this type from the input type.
sourceimpl From<&[u8; 19]> for AttributeValue
impl From<&[u8; 19]> for AttributeValue
sourcefn from(data: &[u8; 19]) -> AttributeValue
fn from(data: &[u8; 19]) -> AttributeValue
Converts to this type from the input type.
sourceimpl From<&[u8; 2]> for AttributeValue
impl From<&[u8; 2]> for AttributeValue
sourcefn from(data: &[u8; 2]) -> AttributeValue
fn from(data: &[u8; 2]) -> AttributeValue
Converts to this type from the input type.
sourceimpl From<&[u8; 20]> for AttributeValue
impl From<&[u8; 20]> for AttributeValue
sourcefn from(data: &[u8; 20]) -> AttributeValue
fn from(data: &[u8; 20]) -> AttributeValue
Converts to this type from the input type.
sourceimpl From<&[u8; 21]> for AttributeValue
impl From<&[u8; 21]> for AttributeValue
sourcefn from(data: &[u8; 21]) -> AttributeValue
fn from(data: &[u8; 21]) -> AttributeValue
Converts to this type from the input type.
sourceimpl From<&[u8; 22]> for AttributeValue
impl From<&[u8; 22]> for AttributeValue
sourcefn from(data: &[u8; 22]) -> AttributeValue
fn from(data: &[u8; 22]) -> AttributeValue
Converts to this type from the input type.
sourceimpl From<&[u8; 23]> for AttributeValue
impl From<&[u8; 23]> for AttributeValue
sourcefn from(data: &[u8; 23]) -> AttributeValue
fn from(data: &[u8; 23]) -> AttributeValue
Converts to this type from the input type.
sourceimpl From<&[u8; 24]> for AttributeValue
impl From<&[u8; 24]> for AttributeValue
sourcefn from(data: &[u8; 24]) -> AttributeValue
fn from(data: &[u8; 24]) -> AttributeValue
Converts to this type from the input type.
sourceimpl From<&[u8; 25]> for AttributeValue
impl From<&[u8; 25]> for AttributeValue
sourcefn from(data: &[u8; 25]) -> AttributeValue
fn from(data: &[u8; 25]) -> AttributeValue
Converts to this type from the input type.
sourceimpl From<&[u8; 26]> for AttributeValue
impl From<&[u8; 26]> for AttributeValue
sourcefn from(data: &[u8; 26]) -> AttributeValue
fn from(data: &[u8; 26]) -> AttributeValue
Converts to this type from the input type.
sourceimpl From<&[u8; 27]> for AttributeValue
impl From<&[u8; 27]> for AttributeValue
sourcefn from(data: &[u8; 27]) -> AttributeValue
fn from(data: &[u8; 27]) -> AttributeValue
Converts to this type from the input type.
sourceimpl From<&[u8; 28]> for AttributeValue
impl From<&[u8; 28]> for AttributeValue
sourcefn from(data: &[u8; 28]) -> AttributeValue
fn from(data: &[u8; 28]) -> AttributeValue
Converts to this type from the input type.
sourceimpl From<&[u8; 29]> for AttributeValue
impl From<&[u8; 29]> for AttributeValue
sourcefn from(data: &[u8; 29]) -> AttributeValue
fn from(data: &[u8; 29]) -> AttributeValue
Converts to this type from the input type.
sourceimpl From<&[u8; 3]> for AttributeValue
impl From<&[u8; 3]> for AttributeValue
sourcefn from(data: &[u8; 3]) -> AttributeValue
fn from(data: &[u8; 3]) -> AttributeValue
Converts to this type from the input type.
sourceimpl From<&[u8; 30]> for AttributeValue
impl From<&[u8; 30]> for AttributeValue
sourcefn from(data: &[u8; 30]) -> AttributeValue
fn from(data: &[u8; 30]) -> AttributeValue
Converts to this type from the input type.
sourceimpl From<&[u8; 31]> for AttributeValue
impl From<&[u8; 31]> for AttributeValue
sourcefn from(data: &[u8; 31]) -> AttributeValue
fn from(data: &[u8; 31]) -> AttributeValue
Converts to this type from the input type.
sourceimpl From<&[u8; 4]> for AttributeValue
impl From<&[u8; 4]> for AttributeValue
sourcefn from(data: &[u8; 4]) -> AttributeValue
fn from(data: &[u8; 4]) -> AttributeValue
Converts to this type from the input type.
sourceimpl From<&[u8; 5]> for AttributeValue
impl From<&[u8; 5]> for AttributeValue
sourcefn from(data: &[u8; 5]) -> AttributeValue
fn from(data: &[u8; 5]) -> AttributeValue
Converts to this type from the input type.
sourceimpl From<&[u8; 6]> for AttributeValue
impl From<&[u8; 6]> for AttributeValue
sourcefn from(data: &[u8; 6]) -> AttributeValue
fn from(data: &[u8; 6]) -> AttributeValue
Converts to this type from the input type.
sourceimpl From<&[u8; 7]> for AttributeValue
impl From<&[u8; 7]> for AttributeValue
sourcefn from(data: &[u8; 7]) -> AttributeValue
fn from(data: &[u8; 7]) -> AttributeValue
Converts to this type from the input type.
sourceimpl From<&[u8; 8]> for AttributeValue
impl From<&[u8; 8]> for AttributeValue
sourcefn from(data: &[u8; 8]) -> AttributeValue
fn from(data: &[u8; 8]) -> AttributeValue
Converts to this type from the input type.
sourceimpl From<&[u8; 9]> for AttributeValue
impl From<&[u8; 9]> for AttributeValue
sourcefn from(data: &[u8; 9]) -> AttributeValue
fn from(data: &[u8; 9]) -> AttributeValue
Converts to this type from the input type.
sourceimpl From<[u8; 0]> for AttributeValue
impl From<[u8; 0]> for AttributeValue
sourcefn from(data: [u8; 0]) -> AttributeValue
fn from(data: [u8; 0]) -> AttributeValue
Converts to this type from the input type.
sourceimpl From<[u8; 1]> for AttributeValue
impl From<[u8; 1]> for AttributeValue
sourcefn from(data: [u8; 1]) -> AttributeValue
fn from(data: [u8; 1]) -> AttributeValue
Converts to this type from the input type.
sourceimpl From<[u8; 10]> for AttributeValue
impl From<[u8; 10]> for AttributeValue
sourcefn from(data: [u8; 10]) -> AttributeValue
fn from(data: [u8; 10]) -> AttributeValue
Converts to this type from the input type.
sourceimpl From<[u8; 11]> for AttributeValue
impl From<[u8; 11]> for AttributeValue
sourcefn from(data: [u8; 11]) -> AttributeValue
fn from(data: [u8; 11]) -> AttributeValue
Converts to this type from the input type.
sourceimpl From<[u8; 12]> for AttributeValue
impl From<[u8; 12]> for AttributeValue
sourcefn from(data: [u8; 12]) -> AttributeValue
fn from(data: [u8; 12]) -> AttributeValue
Converts to this type from the input type.
sourceimpl From<[u8; 13]> for AttributeValue
impl From<[u8; 13]> for AttributeValue
sourcefn from(data: [u8; 13]) -> AttributeValue
fn from(data: [u8; 13]) -> AttributeValue
Converts to this type from the input type.
sourceimpl From<[u8; 14]> for AttributeValue
impl From<[u8; 14]> for AttributeValue
sourcefn from(data: [u8; 14]) -> AttributeValue
fn from(data: [u8; 14]) -> AttributeValue
Converts to this type from the input type.
sourceimpl From<[u8; 15]> for AttributeValue
impl From<[u8; 15]> for AttributeValue
sourcefn from(data: [u8; 15]) -> AttributeValue
fn from(data: [u8; 15]) -> AttributeValue
Converts to this type from the input type.
sourceimpl From<[u8; 16]> for AttributeValue
impl From<[u8; 16]> for AttributeValue
sourcefn from(data: [u8; 16]) -> AttributeValue
fn from(data: [u8; 16]) -> AttributeValue
Converts to this type from the input type.
sourceimpl From<[u8; 17]> for AttributeValue
impl From<[u8; 17]> for AttributeValue
sourcefn from(data: [u8; 17]) -> AttributeValue
fn from(data: [u8; 17]) -> AttributeValue
Converts to this type from the input type.
sourceimpl From<[u8; 18]> for AttributeValue
impl From<[u8; 18]> for AttributeValue
sourcefn from(data: [u8; 18]) -> AttributeValue
fn from(data: [u8; 18]) -> AttributeValue
Converts to this type from the input type.
sourceimpl From<[u8; 19]> for AttributeValue
impl From<[u8; 19]> for AttributeValue
sourcefn from(data: [u8; 19]) -> AttributeValue
fn from(data: [u8; 19]) -> AttributeValue
Converts to this type from the input type.
sourceimpl From<[u8; 2]> for AttributeValue
impl From<[u8; 2]> for AttributeValue
sourcefn from(data: [u8; 2]) -> AttributeValue
fn from(data: [u8; 2]) -> AttributeValue
Converts to this type from the input type.
sourceimpl From<[u8; 20]> for AttributeValue
impl From<[u8; 20]> for AttributeValue
sourcefn from(data: [u8; 20]) -> AttributeValue
fn from(data: [u8; 20]) -> AttributeValue
Converts to this type from the input type.
sourceimpl From<[u8; 21]> for AttributeValue
impl From<[u8; 21]> for AttributeValue
sourcefn from(data: [u8; 21]) -> AttributeValue
fn from(data: [u8; 21]) -> AttributeValue
Converts to this type from the input type.
sourceimpl From<[u8; 22]> for AttributeValue
impl From<[u8; 22]> for AttributeValue
sourcefn from(data: [u8; 22]) -> AttributeValue
fn from(data: [u8; 22]) -> AttributeValue
Converts to this type from the input type.
sourceimpl From<[u8; 23]> for AttributeValue
impl From<[u8; 23]> for AttributeValue
sourcefn from(data: [u8; 23]) -> AttributeValue
fn from(data: [u8; 23]) -> AttributeValue
Converts to this type from the input type.
sourceimpl From<[u8; 24]> for AttributeValue
impl From<[u8; 24]> for AttributeValue
sourcefn from(data: [u8; 24]) -> AttributeValue
fn from(data: [u8; 24]) -> AttributeValue
Converts to this type from the input type.
sourceimpl From<[u8; 25]> for AttributeValue
impl From<[u8; 25]> for AttributeValue
sourcefn from(data: [u8; 25]) -> AttributeValue
fn from(data: [u8; 25]) -> AttributeValue
Converts to this type from the input type.
sourceimpl From<[u8; 26]> for AttributeValue
impl From<[u8; 26]> for AttributeValue
sourcefn from(data: [u8; 26]) -> AttributeValue
fn from(data: [u8; 26]) -> AttributeValue
Converts to this type from the input type.
sourceimpl From<[u8; 27]> for AttributeValue
impl From<[u8; 27]> for AttributeValue
sourcefn from(data: [u8; 27]) -> AttributeValue
fn from(data: [u8; 27]) -> AttributeValue
Converts to this type from the input type.
sourceimpl From<[u8; 28]> for AttributeValue
impl From<[u8; 28]> for AttributeValue
sourcefn from(data: [u8; 28]) -> AttributeValue
fn from(data: [u8; 28]) -> AttributeValue
Converts to this type from the input type.
sourceimpl From<[u8; 29]> for AttributeValue
impl From<[u8; 29]> for AttributeValue
sourcefn from(data: [u8; 29]) -> AttributeValue
fn from(data: [u8; 29]) -> AttributeValue
Converts to this type from the input type.
sourceimpl From<[u8; 3]> for AttributeValue
impl From<[u8; 3]> for AttributeValue
sourcefn from(data: [u8; 3]) -> AttributeValue
fn from(data: [u8; 3]) -> AttributeValue
Converts to this type from the input type.
sourceimpl From<[u8; 30]> for AttributeValue
impl From<[u8; 30]> for AttributeValue
sourcefn from(data: [u8; 30]) -> AttributeValue
fn from(data: [u8; 30]) -> AttributeValue
Converts to this type from the input type.
sourceimpl From<[u8; 31]> for AttributeValue
impl From<[u8; 31]> for AttributeValue
sourcefn from(data: [u8; 31]) -> AttributeValue
fn from(data: [u8; 31]) -> AttributeValue
Converts to this type from the input type.
sourceimpl From<[u8; 4]> for AttributeValue
impl From<[u8; 4]> for AttributeValue
sourcefn from(data: [u8; 4]) -> AttributeValue
fn from(data: [u8; 4]) -> AttributeValue
Converts to this type from the input type.
sourceimpl From<[u8; 5]> for AttributeValue
impl From<[u8; 5]> for AttributeValue
sourcefn from(data: [u8; 5]) -> AttributeValue
fn from(data: [u8; 5]) -> AttributeValue
Converts to this type from the input type.
sourceimpl From<[u8; 6]> for AttributeValue
impl From<[u8; 6]> for AttributeValue
sourcefn from(data: [u8; 6]) -> AttributeValue
fn from(data: [u8; 6]) -> AttributeValue
Converts to this type from the input type.
sourceimpl From<[u8; 7]> for AttributeValue
impl From<[u8; 7]> for AttributeValue
sourcefn from(data: [u8; 7]) -> AttributeValue
fn from(data: [u8; 7]) -> AttributeValue
Converts to this type from the input type.
sourceimpl From<[u8; 8]> for AttributeValue
impl From<[u8; 8]> for AttributeValue
sourcefn from(data: [u8; 8]) -> AttributeValue
fn from(data: [u8; 8]) -> AttributeValue
Converts to this type from the input type.
sourceimpl From<[u8; 9]> for AttributeValue
impl From<[u8; 9]> for AttributeValue
sourcefn from(data: [u8; 9]) -> AttributeValue
fn from(data: [u8; 9]) -> AttributeValue
Converts to this type from the input type.
sourceimpl PartialEq<AttributeValue> for AttributeValue
impl PartialEq<AttributeValue> for AttributeValue
sourcefn eq(&self, other: &AttributeValue) -> bool
fn eq(&self, other: &AttributeValue) -> bool
sourceimpl Serial for AttributeValue
impl Serial for AttributeValue
sourceimpl TryFrom<&[u8]> for AttributeValue
impl TryFrom<&[u8]> for AttributeValue
type Error = NewAttributeValueError
type Error = NewAttributeValueError
The type returned in the event of a conversion error.
sourcefn try_from(
value: &[u8]
) -> Result<AttributeValue, <AttributeValue as TryFrom<&[u8]>>::Error>
fn try_from(
value: &[u8]
) -> Result<AttributeValue, <AttributeValue as TryFrom<&[u8]>>::Error>
Performs the conversion.
impl Copy for AttributeValue
impl Eq for AttributeValue
impl StructuralEq for AttributeValue
impl StructuralPartialEq for AttributeValue
Auto Trait Implementations
impl RefUnwindSafe for AttributeValue
impl Send for AttributeValue
impl Sync for AttributeValue
impl Unpin for AttributeValue
impl UnwindSafe for AttributeValue
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more