pub struct AttachmentMeta {
pub id: String,
pub file_name: String,
pub size: Option<u64>,
pub size_name: Option<String>,
pub url: Option<String>,
pub key: Option<String>,
}Expand description
One attachment’s metadata, as a cipher and the download route carry it.
Fields§
§id: String§file_name: String§size: Option<u64>Vaultwarden sends the size as a string on some routes and a number on others; both spellings mean the same byte count.
size_name: Option<String>§url: Option<String>§key: Option<String>The wrapped attachment key. Never returned past this module.
Trait Implementations§
Source§impl Clone for AttachmentMeta
impl Clone for AttachmentMeta
Source§impl Debug for AttachmentMeta
Hand-written because the signed URL carries its own token and the key is a
wrapped credential.
impl Debug for AttachmentMeta
Hand-written because the signed URL carries its own token and the key is a wrapped credential.
Source§impl<'de> Deserialize<'de> for AttachmentMeta
impl<'de> Deserialize<'de> for AttachmentMeta
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 AttachmentMeta
impl RefUnwindSafe for AttachmentMeta
impl Send for AttachmentMeta
impl Sync for AttachmentMeta
impl Unpin for AttachmentMeta
impl UnsafeUnpin for AttachmentMeta
impl UnwindSafe for AttachmentMeta
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
Mutably borrows from an owned value. Read more
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more