pub struct KeyGroupNames { /* private fields */ }Expand description
The value of [ex-ostrya server] sign-summary and of
[ex-ostrya client "NAME"] sign: a list of key group names that is not
empty.
A name is the quoted part of the header of a group
[ex-ostrya key "NAME"], a section of key::Group.
The names are text, and
GroupRef::new makes a reference of a name.
Each name occurs one time. An item can be
empty. The value type does not check that a group of the name exists.
ClientAccess::from_config checks it.
§Examples
use ostrya_core::config::{KeyGroupNames, Value};
let names = KeyGroupNames::parse("b;a;b")?;
assert_eq!(names.names(), ["b", "a"]);
assert!(KeyGroupNames::parse("").is_err());Implementations§
Source§impl KeyGroupNames
impl KeyGroupNames
Trait Implementations§
Source§impl Clone for KeyGroupNames
impl Clone for KeyGroupNames
Source§impl Debug for KeyGroupNames
impl Debug for KeyGroupNames
impl Eq for KeyGroupNames
Source§impl Hash for KeyGroupNames
impl Hash for KeyGroupNames
Source§impl PartialEq for KeyGroupNames
impl PartialEq for KeyGroupNames
impl StructuralPartialEq for KeyGroupNames
Source§impl TryFrom<Vec<String>> for KeyGroupNames
impl TryFrom<Vec<String>> for KeyGroupNames
Source§fn try_from(names: Vec<String>) -> Result<KeyGroupNames, ValueError>
fn try_from(names: Vec<String>) -> Result<KeyGroupNames, ValueError>
Source§type Error = ValueError
type Error = ValueError
The type returned in the event of a conversion error.
Source§impl Value for KeyGroupNames
The text is a ; list with the escape sequences of a key file. The list
is decoded, and then checked as KeyGroupNames::try_from checks it.
impl Value for KeyGroupNames
The text is a ; list with the escape sequences of a key file. The list
is decoded, and then checked as KeyGroupNames::try_from checks it.
Auto Trait Implementations§
impl Forget for KeyGroupNames
impl Freeze for KeyGroupNames
impl Move for KeyGroupNames
impl RefUnwindSafe for KeyGroupNames
impl Send for KeyGroupNameswhere
RawVecInner: Send,
impl Sync for KeyGroupNameswhere
RawVecInner: Sync,
impl Unpin for KeyGroupNames
impl UnsafeUnpin for KeyGroupNames
impl UnwindSafe for KeyGroupNameswhere
RawVecInner: UnwindSafe,
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