pub struct TemplateAttribute { /* private fields */ }Expand description
See KMIP 1.0 section 2.1.8 Template-Attribute Structures.
Implementations§
Source§impl TemplateAttribute
impl TemplateAttribute
pub fn new(attributes: Vec<Attribute>) -> Self
pub fn new_with_names(attributes: Vec<Attribute>, names: Vec<Name>) -> Self
pub fn with_template_name(self, template_name: &'static str) -> Self
pub fn template_names(&self) -> &[Name]
pub fn attributes(&self) -> &[Attribute]
Source§impl TemplateAttribute
impl TemplateAttribute
pub const TAG: Tag
pub fn fast_scan(scanner: &mut FastScanner<'_>) -> Result<Self, FastScanError>
pub fn fast_scan_with( scanner: &mut FastScanner<'_>, tag: Tag, ) -> Result<Self, FastScanError>
pub fn fast_scan_opt( scanner: &mut FastScanner<'_>, ) -> Result<Option<Self>, FastScanError>
pub fn fast_scan_opt_with( scanner: &mut FastScanner<'_>, tag: Tag, ) -> Result<Option<Self>, FastScanError>
pub fn format(&self, formatter: &mut Formatter<'_>) -> FormatResult
pub fn format_with( &self, formatter: &mut Formatter<'_>, tag: Tag, ) -> FormatResult
Trait Implementations§
Source§impl Clone for TemplateAttribute
impl Clone for TemplateAttribute
Source§impl Debug for TemplateAttribute
impl Debug for TemplateAttribute
impl Eq for TemplateAttribute
Source§impl PartialEq for TemplateAttribute
impl PartialEq for TemplateAttribute
impl StructuralPartialEq for TemplateAttribute
Auto Trait Implementations§
impl Forget for TemplateAttribute
impl Freeze for TemplateAttribute
impl Move for TemplateAttribute
impl RefUnwindSafe for TemplateAttribute
impl Send for TemplateAttribute
impl Sync for TemplateAttribute
impl Unpin for TemplateAttribute
impl UnsafeUnpin for TemplateAttribute
impl UnwindSafe for TemplateAttribute
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