pub struct UpdateOptions {
pub transaction_type: UpdateTransactionType,
pub links_to_remove: Vec<String>,
}Expand description
Options for updating secrets with advanced features
§Fields
transaction_type- Type of transaction (General or Rotation)links_to_remove- Array of link UIDs to remove (file links, record links)
§Example
use keeper_secrets_manager_core::dto::payload::{UpdateOptions, UpdateTransactionType};
let options = UpdateOptions::new(UpdateTransactionType::Rotation, vec!["file-uid-123".to_string()]);Fields§
§transaction_type: UpdateTransactionType§links_to_remove: Vec<String>Implementations§
Source§impl UpdateOptions
impl UpdateOptions
pub fn new( transaction_type: UpdateTransactionType, links_to_remove: Vec<String>, ) -> Self
pub fn with_transaction_type(transaction_type: UpdateTransactionType) -> Self
pub fn with_links_removal(links_to_remove: Vec<String>) -> Self
Trait Implementations§
Source§impl Clone for UpdateOptions
impl Clone for UpdateOptions
Source§fn clone(&self) -> UpdateOptions
fn clone(&self) -> UpdateOptions
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 UpdateOptions
impl Debug for UpdateOptions
Source§impl Default for UpdateOptions
impl Default for UpdateOptions
Source§impl PartialEq for UpdateOptions
impl PartialEq for UpdateOptions
Source§fn eq(&self, other: &UpdateOptions) -> bool
fn eq(&self, other: &UpdateOptions) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for UpdateOptions
Auto Trait Implementations§
impl Freeze for UpdateOptions
impl RefUnwindSafe for UpdateOptions
impl Send for UpdateOptions
impl Sync for UpdateOptions
impl Unpin for UpdateOptions
impl UnsafeUnpin for UpdateOptions
impl UnwindSafe for UpdateOptions
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