#[non_exhaustive]pub struct RestoreCredentialsArgs {
pub group: Uuid,
pub run_id: Option<Uuid>,
pub type_: String,
}Expand description
Request body for minting read-only restore credentials.
JSON schema
{
"description": "Request body for minting read-only restore credentials.",
"type": "object",
"required": [
"group",
"type"
],
"properties": {
"group": {
"description": "The server group whose backup repository to read.",
"type": "string",
"format": "uuid"
},
"run_id": {
"description": "This must be the run-uuid the client minted for this run.\nThe field is optional only so older clients don't break; it WILL be made\nmandatory in future.",
"type": [
"string",
"null"
],
"format": "uuid"
},
"type": {
"description": "The backup type to restore (e.g. `tamanu-postgres`).",
"type": "string"
}
}
}Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.group: UuidThe server group whose backup repository to read.
run_id: Option<Uuid>This must be the run-uuid the client minted for this run. The field is optional only so older clients don’t break; it WILL be made mandatory in future.
type_: StringThe backup type to restore (e.g. tamanu-postgres).
Implementations§
Source§impl RestoreCredentialsArgs
impl RestoreCredentialsArgs
Sourcepub fn builder() -> RestoreCredentialsArgsBuilder
pub fn builder() -> RestoreCredentialsArgsBuilder
Create an instance of RestoreCredentialsArgs using the builder syntax
Trait Implementations§
Source§impl Clone for RestoreCredentialsArgs
impl Clone for RestoreCredentialsArgs
Source§fn clone(&self) -> RestoreCredentialsArgs
fn clone(&self) -> RestoreCredentialsArgs
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 RestoreCredentialsArgs
impl Debug for RestoreCredentialsArgs
Source§impl<'de> Deserialize<'de> for RestoreCredentialsArgs
impl<'de> Deserialize<'de> for RestoreCredentialsArgs
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
Auto Trait Implementations§
impl Freeze for RestoreCredentialsArgs
impl RefUnwindSafe for RestoreCredentialsArgs
impl Send for RestoreCredentialsArgs
impl Sync for RestoreCredentialsArgs
impl Unpin for RestoreCredentialsArgs
impl UnsafeUnpin for RestoreCredentialsArgs
impl UnwindSafe for RestoreCredentialsArgs
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