pub struct File {
pub text: String,
pub file: CryptoFile,
}Expand description
Simple file attachment
Fields§
§text: String§file: CryptoFileImplementations§
Source§impl File
impl File
pub fn new<P: AsRef<Path>>(path: P) -> Self
pub fn with_caption(self, caption: impl Into<String>) -> Self
pub fn with_crypto_args(self, args: CryptoFileArgs) -> Self
Trait Implementations§
Source§impl MessageLike for File
impl MessageLike for File
type Kind = RichKind
fn into_builder_parts(self) -> (ComposedMessage, RichKind)
Auto Trait Implementations§
impl Freeze for File
impl RefUnwindSafe for File
impl Send for File
impl Sync for File
impl Unpin for File
impl UnsafeUnpin for File
impl UnwindSafe for File
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