pub struct Attribute {
pub typ: Oid,
pub values: Vec<AttributeValue>,
}
Expand description
A single attribute.
Attribute ::= SEQUENCE {
attrType OBJECT IDENTIFIER,
attrValues SET OF AttributeValue }
Fields§
§typ: Oid
§values: Vec<AttributeValue>
Implementations§
Source§impl Attribute
impl Attribute
pub fn take_opt_from<S: Source>( cons: &mut Constructed<'_, S>, ) -> Result<Option<Self>, DecodeError<S::Error>>
pub fn encode_ref(&self) -> impl Values + '_
pub fn encode(self) -> impl Values
Trait Implementations§
impl Eq for Attribute
impl StructuralPartialEq for Attribute
Auto Trait Implementations§
impl !Freeze for Attribute
impl RefUnwindSafe for Attribute
impl Send for Attribute
impl Sync for Attribute
impl Unpin for Attribute
impl UnwindSafe for Attribute
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§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)