pub struct DataTxProperties {
pub shared_secret: String,
pub src_uri: String,
pub size: Option<u64>,
}
Fields§
An optional secret to be used to access the resource, such
as
a bearer token. If a code
is provided, it SHOULD be used
instead via the code flow interaction, and the sharedSecret
SHOULD be omitted. To prevent leaking it in logs it MUST NOT
appear in any URI.
src_uri: String
An URI to access the resource at the sending server. The
URI
SHOULD be relative, such as a key or a UUID, in which case the
prefix exposed by the /.well-known/ocm
endpoint SHOULD be used
to access the resource, or it MAY be absolute, including
a hostname. The latter is NOT recommended because of security
concerns.
size: Option<u64>
The size of the file to be transferred from the sending server.
Trait Implementations§
Source§impl Clone for DataTxProperties
impl Clone for DataTxProperties
Source§fn clone(&self) -> DataTxProperties
fn clone(&self) -> DataTxProperties
Returns a duplicate of the value. Read more
1.0.0 · 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 DataTxProperties
impl Debug for DataTxProperties
Source§impl Default for DataTxProperties
impl Default for DataTxProperties
Source§fn default() -> DataTxProperties
fn default() -> DataTxProperties
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for DataTxProperties
impl<'de> Deserialize<'de> for DataTxProperties
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
Source§impl PartialEq for DataTxProperties
impl PartialEq for DataTxProperties
Source§impl Serialize for DataTxProperties
impl Serialize for DataTxProperties
impl Eq for DataTxProperties
impl StructuralPartialEq for DataTxProperties
Auto Trait Implementations§
impl Freeze for DataTxProperties
impl RefUnwindSafe for DataTxProperties
impl Send for DataTxProperties
impl Sync for DataTxProperties
impl Unpin for DataTxProperties
impl UnwindSafe for DataTxProperties
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