#[non_exhaustive]pub enum SchemaAttributeType {
String,
Integer,
Boolean,
}
Expand description
The type of an attribute in a SecretSchema
.
Attributes are stored as strings in the Secret Service, and the attribute types simply define standard ways to store integer and boolean values as strings.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
String
a utf-8 string attribute
Integer
an integer attribute, stored as a decimal
Boolean
a boolean attribute, stored as ‘true’ or ‘false’
Trait Implementations§
Source§impl Clone for SchemaAttributeType
impl Clone for SchemaAttributeType
Source§fn clone(&self) -> SchemaAttributeType
fn clone(&self) -> SchemaAttributeType
Returns a copy 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 SchemaAttributeType
impl Debug for SchemaAttributeType
Source§impl From<SchemaAttributeType> for Value
impl From<SchemaAttributeType> for Value
Source§fn from(v: SchemaAttributeType) -> Self
fn from(v: SchemaAttributeType) -> Self
Converts to this type from the input type.
Source§impl<'a> FromValue<'a> for SchemaAttributeType
impl<'a> FromValue<'a> for SchemaAttributeType
Source§type Checker = GenericValueTypeChecker<SchemaAttributeType>
type Checker = GenericValueTypeChecker<SchemaAttributeType>
Value type checker.
Source§unsafe fn from_value(value: &'a Value) -> Self
unsafe fn from_value(value: &'a Value) -> Self
Get the contained value from a
Value
. Read moreSource§impl HasParamSpec for SchemaAttributeType
impl HasParamSpec for SchemaAttributeType
type ParamSpec = ParamSpecEnum
Source§type SetValue = SchemaAttributeType
type SetValue = SchemaAttributeType
Preferred value to be used as setter for the associated ParamSpec.
type BuilderFn = fn(_: &str, _: SchemaAttributeType) -> ParamSpecEnumBuilder<'_, SchemaAttributeType>
fn param_spec_builder() -> Self::BuilderFn
Source§impl Hash for SchemaAttributeType
impl Hash for SchemaAttributeType
Source§impl Ord for SchemaAttributeType
impl Ord for SchemaAttributeType
Source§fn cmp(&self, other: &SchemaAttributeType) -> Ordering
fn cmp(&self, other: &SchemaAttributeType) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for SchemaAttributeType
impl PartialEq for SchemaAttributeType
Source§impl PartialOrd for SchemaAttributeType
impl PartialOrd for SchemaAttributeType
Source§impl StaticType for SchemaAttributeType
impl StaticType for SchemaAttributeType
Source§fn static_type() -> Type
fn static_type() -> Type
Returns the type identifier of
Self
.Source§impl ToValue for SchemaAttributeType
impl ToValue for SchemaAttributeType
Source§impl ValueType for SchemaAttributeType
impl ValueType for SchemaAttributeType
Source§type Type = SchemaAttributeType
type Type = SchemaAttributeType
Type to get the
Type
from. Read moreimpl Copy for SchemaAttributeType
impl Eq for SchemaAttributeType
impl StructuralPartialEq for SchemaAttributeType
Auto Trait Implementations§
impl Freeze for SchemaAttributeType
impl RefUnwindSafe for SchemaAttributeType
impl Send for SchemaAttributeType
impl Sync for SchemaAttributeType
impl Unpin for SchemaAttributeType
impl UnwindSafe for SchemaAttributeType
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,
§impl<T> IntoClosureReturnValue for Twhere
T: Into<Value>,
impl<T> IntoClosureReturnValue for Twhere
T: Into<Value>,
fn into_closure_return_value(self) -> Option<Value>
§impl<T> PropertyGet for Twhere
T: HasParamSpec,
impl<T> PropertyGet for Twhere
T: HasParamSpec,
§impl<T> StaticTypeExt for Twhere
T: StaticType,
impl<T> StaticTypeExt for Twhere
T: StaticType,
§fn ensure_type()
fn ensure_type()
Ensures that the type has been registered with the type system.
§impl<T> ToSendValue for T
impl<T> ToSendValue for T
§fn to_send_value(&self) -> SendValue
fn to_send_value(&self) -> SendValue
Returns a
SendValue
clone of self
.