pub struct SecretCatalog {
pub schema: i64,
pub onepassword: Option<OnePassword>,
pub secrets: Option<BTreeMap<String, SecretEntry>>,
pub extra: Table,
}Expand description
store/secrets.toml.
Fields§
§schema: i64Schema version; always 1.
onepassword: Option<OnePassword>§secrets: Option<BTreeMap<String, SecretEntry>>Aliases (${secret:ALIAS}) and the references they resolve to.
extra: TableImplementations§
Source§impl SecretCatalog
impl SecretCatalog
pub fn new() -> Self
pub fn validate(&self) -> Diagnostics
Trait Implementations§
Source§impl Clone for SecretCatalog
impl Clone for SecretCatalog
Source§impl Debug for SecretCatalog
impl Debug for SecretCatalog
Source§impl Default for SecretCatalog
impl Default for SecretCatalog
Source§impl<'de> Deserialize<'de> for SecretCatalog
impl<'de> Deserialize<'de> for SecretCatalog
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl JsonSchema for SecretCatalog
impl JsonSchema for SecretCatalog
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreSource§impl PartialEq for SecretCatalog
impl PartialEq for SecretCatalog
Source§impl Serialize for SecretCatalog
impl Serialize for SecretCatalog
Source§impl StoreModel for SecretCatalog
impl StoreModel for SecretCatalog
Source§const SCHEMA_NAME: &'static str = "secrets"
const SCHEMA_NAME: &'static str = "secrets"
File stem of the generated JSON Schema:
docs/schema/<NAME>.schema.json.impl StructuralPartialEq for SecretCatalog
Auto Trait Implementations§
impl Forget for SecretCatalog
impl Freeze for SecretCatalogwhere
*const u8 is !null: Freeze,
PhantomData<u8>: Freeze,
*const LeafNode<String, Value> is !null: Freeze,
PhantomData<(Owned, LeafOrInternal)>: Freeze,
PhantomData<Box<(String, Value)>>: Freeze,
*const LeafNode<String, SecretEntry> is !null: Freeze,
PhantomData<Box<(String, SecretEntry)>>: Freeze,
impl Move for SecretCatalog
impl RefUnwindSafe for SecretCatalog
impl Send for SecretCatalog
impl Sync for SecretCatalog
impl Unpin for SecretCatalog
impl UnsafeUnpin for SecretCatalogwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
*const LeafNode<String, Value> is !null: UnsafeUnpin,
PhantomData<(Owned, LeafOrInternal)>: UnsafeUnpin,
PhantomData<Box<(String, Value)>>: UnsafeUnpin,
*const LeafNode<String, SecretEntry> is !null: UnsafeUnpin,
PhantomData<Box<(String, SecretEntry)>>: UnsafeUnpin,
impl UnwindSafe for SecretCatalogwhere
RawVecInner: UnwindSafe,
BTreeMap<String, Value>: UnwindSafe,
BTreeMap<String, SecretEntry>: 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