pub struct AddressRef { /* private fields */ }Implementations§
Source§impl AddressRef
impl AddressRef
Sourcepub fn new(
value: String,
label: Option<String>,
required: bool,
privacy_screen: bool,
) -> KeeperField
pub fn new( value: String, label: Option<String>, required: bool, privacy_screen: bool, ) -> KeeperField
ⓘ
let mut login_new = RecordCreate::new("login".to_string(), "custom_login_new_login_create".to_string(), Some("dummy_notes_changed".to_string()));
let mut address_new = RecordCreate::new("address".to_string(), "sampleaddress1".to_string(), Some("dummy_notes_changed".to_string()));
let address1 = field_structs::Address::new(Some("street1".to_string()), Some("street2".to_string()), Some("city".to_string()), Some("state".to_string()), "IN".to_string(), None)?;
let addresses= field_structs::Addresses::new_addresses(address1);
address_new.append_standard_fields(addresses);
let created_address = secrets_manager.create_secret("0fLf6oIA9KY8V4BIbWz0kA".to_string(), address_new)?;
let address_ref_field = field_structs::AddressRef::new_address_ref(created_address);
login_new.append_custom_field(address_ref_field);
let created_record: Result<String, KSMRError> = secrets_manager.create_secret("parent_folder_uid".to_string(), login_new);pub fn new_address_ref(value: String) -> KeeperField
Trait Implementations§
Source§impl Debug for AddressRef
impl Debug for AddressRef
Source§impl<'de> Deserialize<'de> for AddressRef
impl<'de> Deserialize<'de> for AddressRef
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 AddressRef
impl RefUnwindSafe for AddressRef
impl Send for AddressRef
impl Sync for AddressRef
impl Unpin for AddressRef
impl UnwindSafe for AddressRef
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