pub struct ReclaimAttribute {
pub id: ReclaimIdentifier,
pub credential: ReclaimIdentifier,
pub attribute_type: u32,
pub flag: u32,
pub name: String,
pub data: Vec<u8>,
}Expand description
Атрибут ego: именованное значение, которое владелец сообщает о себе
(struct GNUNET_RECLAIM_Attribute).
Fields§
§id: ReclaimIdentifierНулевой у нового атрибута: идентификатор назначает сервис при записи.
credential: ReclaimIdentifierСвидетельство, подтверждающее значение; нулевой для самозаявленного атрибута.
attribute_type: u32GNUNET_RECLAIM_ATTRIBUTE_TYPE_*.
flag: u32Флаги атрибута, как их хранит сервис; у нового атрибута 0.
name: StringИмя атрибута, например email.
data: Vec<u8>Значение в сыром виде; как его читать, определяет тип.
Implementations§
Source§impl ReclaimAttribute
impl ReclaimAttribute
Trait Implementations§
Source§impl Clone for ReclaimAttribute
impl Clone for ReclaimAttribute
Source§fn clone(&self) -> ReclaimAttribute
fn clone(&self) -> ReclaimAttribute
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 ReclaimAttribute
impl Debug for ReclaimAttribute
impl Eq for ReclaimAttribute
Source§impl PartialEq for ReclaimAttribute
impl PartialEq for ReclaimAttribute
impl StructuralPartialEq for ReclaimAttribute
Auto Trait Implementations§
impl Freeze for ReclaimAttribute
impl RefUnwindSafe for ReclaimAttribute
impl Send for ReclaimAttribute
impl Sync for ReclaimAttribute
impl Unpin for ReclaimAttribute
impl UnsafeUnpin for ReclaimAttribute
impl UnwindSafe for ReclaimAttribute
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