pub struct SendRequestModel {Show 15 fields
pub type: Option<SendType>,
pub auth_type: Option<AuthType>,
pub file_length: Option<i64>,
pub name: Option<String>,
pub notes: Option<String>,
pub key: String,
pub max_access_count: Option<i32>,
pub expiration_date: Option<String>,
pub deletion_date: String,
pub file: Option<Box<SendFileModel>>,
pub text: Option<Box<SendTextModel>>,
pub password: Option<String>,
pub emails: Option<String>,
pub disabled: bool,
pub hide_email: Option<bool>,
}Expand description
SendRequestModel : A send request issued by a Bitwarden client
Fields§
§type: Option<SendType>§auth_type: Option<AuthType>§file_length: Option<i64>Estimated length of the file accompanying the send. null when Bit.Api.Tools.Models.Request.SendRequestModel.Type is Bit.Core.Tools.Enums.SendType.Text.
name: Option<String>Label for the send.
notes: Option<String>Notes for the send. This is only visible to the owner of the send.
key: StringA base64-encoded byte array containing the Send’s encryption key. This key is also provided to send recipients in the Send’s URL.
max_access_count: Option<i32>The maximum number of times a send can be accessed before it expires. When this value is null, there is no limit.
expiration_date: Option<String>The date after which a send cannot be accessed. When this value is null, there is no expiration date.
deletion_date: StringThe date after which a send may be automatically deleted from the server. The server enforces a maximum of 31 days from creation. A background job deletes sends once this date has passed.
file: Option<Box<SendFileModel>>§text: Option<Box<SendTextModel>>§password: Option<String>Base64-encoded byte array of a password hash that grants access to the send. Mutually exclusive with Bit.Api.Tools.Models.Request.SendRequestModel.Emails.
emails: Option<String>Comma-separated list of emails that may access the send using OTP authentication. Mutually exclusive with Bit.Api.Tools.Models.Request.SendRequestModel.Password.
disabled: boolWhen true, send access is disabled. Defaults to false.
hide_email: Option<bool>When true send access hides the user’s email address and displays a confirmation message instead. Defaults to false.
Implementations§
Trait Implementations§
Source§impl Clone for SendRequestModel
impl Clone for SendRequestModel
Source§fn clone(&self) -> SendRequestModel
fn clone(&self) -> SendRequestModel
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for SendRequestModel
impl Debug for SendRequestModel
Source§impl Default for SendRequestModel
impl Default for SendRequestModel
Source§fn default() -> SendRequestModel
fn default() -> SendRequestModel
Source§impl<'de> Deserialize<'de> for SendRequestModel
impl<'de> Deserialize<'de> for SendRequestModel
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>,
Source§impl PartialEq for SendRequestModel
impl PartialEq for SendRequestModel
Source§impl Serialize for SendRequestModel
impl Serialize for SendRequestModel
impl StructuralPartialEq for SendRequestModel
Auto Trait Implementations§
impl Freeze for SendRequestModel
impl RefUnwindSafe for SendRequestModel
impl Send for SendRequestModel
impl Sync for SendRequestModel
impl Unpin for SendRequestModel
impl UnsafeUnpin for SendRequestModel
impl UnwindSafe for SendRequestModel
Blanket Implementations§
§impl<T> AnySync for T
impl<T> AnySync for T
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> CompatExt for T
impl<T> CompatExt for T
§impl<T, UT> HandleAlloc<UT> for T
impl<T, UT> HandleAlloc<UT> for T
§fn new_handle(value: Arc<T>) -> Handle
fn new_handle(value: Arc<T>) -> Handle
§unsafe fn clone_handle(handle: Handle) -> Handle
unsafe fn clone_handle(handle: Handle) -> Handle
§unsafe fn consume_handle(handle: Handle) -> Arc<T>
unsafe fn consume_handle(handle: Handle) -> Arc<T>
Arc<> Read more