pub struct Names { /* private fields */ }Implementations§
Source§impl Names
impl Names
Sourcepub fn new(
value: Vec<Name>,
label: Option<String>,
required: bool,
privacy_screen: bool,
) -> KeeperField
pub fn new( value: Vec<Name>, label: Option<String>, required: bool, privacy_screen: bool, ) -> KeeperField
ⓘ
use keeper_secrets_manager_core::dto::field_structs;
let mut login_new = RecordCreate::new("login".to_string(), "custom_login_new_login_create".to_string(), Some("dummy_notes_changed".to_string()));
let name: Name =field_structs::Name::new(Some("Sample".to_string()), None, Some("User".to_string()));
let names: Vec<Name> = vec![name];
let names_field: KeeperField = field_structs::Names::new(names, None, false, false);
login_new.append_standard_fields(names_field);
let created_record :Result<String, KSMRError> = secrets_manager.create_secret("some_folder_uid".to_string(), login_new);pub fn new_names(value: Vec<Name>) -> KeeperField
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Names
impl<'de> Deserialize<'de> for Names
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 Names
impl RefUnwindSafe for Names
impl Send for Names
impl Sync for Names
impl Unpin for Names
impl UnwindSafe for Names
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