pub struct SshCertSpec {
pub principals: Vec<String>,
pub validity: SshValidity,
pub cert_type: SshCertType,
pub critical_options: Vec<(String, String)>,
pub extensions: Vec<(String, String)>,
}Expand description
SSH certificate fixture specification.
Fields§
§principals: Vec<String>§validity: SshValidity§cert_type: SshCertType§critical_options: Vec<(String, String)>§extensions: Vec<(String, String)>Implementations§
Source§impl SshCertSpec
impl SshCertSpec
pub fn user( principals: impl IntoIterator<Item = impl Into<String>>, validity: SshValidity, ) -> Self
pub fn host( principals: impl IntoIterator<Item = impl Into<String>>, validity: SshValidity, ) -> Self
pub fn stable_bytes(&self) -> Vec<u8> ⓘ
Trait Implementations§
Source§impl Clone for SshCertSpec
impl Clone for SshCertSpec
Source§fn clone(&self) -> SshCertSpec
fn clone(&self) -> SshCertSpec
Returns a duplicate 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 SshCertSpec
impl Debug for SshCertSpec
Source§impl Hash for SshCertSpec
impl Hash for SshCertSpec
Source§impl PartialEq for SshCertSpec
impl PartialEq for SshCertSpec
impl Eq for SshCertSpec
impl StructuralPartialEq for SshCertSpec
Auto Trait Implementations§
impl Freeze for SshCertSpec
impl RefUnwindSafe for SshCertSpec
impl Send for SshCertSpec
impl Sync for SshCertSpec
impl Unpin for SshCertSpec
impl UnsafeUnpin for SshCertSpec
impl UnwindSafe for SshCertSpec
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