pub struct Text { /* private fields */ }Implementations§
Source§impl Text
impl Text
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
ⓘ
use keeper_secrets_manager_core::dto::field_structs;
let text_field = field_structs::Text::new("dummy_text".to_string(), None, false, false);
let mut login_new = RecordCreate::new("login".to_string(), "custom_login_new_login_create".to_string(), Some("dummy_notes_changed".to_string()));
login_new.append_standard_fields(text_field);
let created_record :Result<String, KSMRError> = secrets_manager.create_secret("some_folder_uid".to_string(), login_new);pub fn new_text(value: String) -> KeeperField
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Text
impl<'de> Deserialize<'de> for Text
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 Text
impl RefUnwindSafe for Text
impl Send for Text
impl Sync for Text
impl Unpin for Text
impl UnwindSafe for Text
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