#[non_exhaustive]pub struct AttachmentCopy {
pub unavailable: LocalizedText,
pub over_budget: LocalizedText,
pub unsupported: LocalizedText,
}Expand description
What a user is told about a file the model was not shown.
Deterministic, and reaches them whether or not a model runs — which is the property that matters, because the alternative is prose about a document nobody looked at.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.The application could not hand the file over.
over_budget: LocalizedTextThe file did not fit the budget for one request.
unsupported: LocalizedTextNo model this deployment runs accepts its kind.
Implementations§
Source§impl AttachmentCopy
impl AttachmentCopy
Sourcepub fn for_reason(&self, reason: NotShown) -> &LocalizedText
pub fn for_reason(&self, reason: NotShown) -> &LocalizedText
The sentence for one reason.
Trait Implementations§
Source§impl Clone for AttachmentCopy
impl Clone for AttachmentCopy
Source§impl Debug for AttachmentCopy
impl Debug for AttachmentCopy
Source§impl Default for AttachmentCopy
impl Default for AttachmentCopy
Source§impl ServerCopy for AttachmentCopy
impl ServerCopy for AttachmentCopy
Source§fn entries(&self) -> Vec<(&'static str, &LocalizedText)>
fn entries(&self) -> Vec<(&'static str, &LocalizedText)>
Every sentence, by the name of its field.
Source§fn entries_mut(&mut self) -> Vec<(&'static str, &mut LocalizedText)>
fn entries_mut(&mut self) -> Vec<(&'static str, &mut LocalizedText)>
Every sentence, to change in place.
Auto Trait Implementations§
impl Freeze for AttachmentCopy
impl RefUnwindSafe for AttachmentCopy
impl Send for AttachmentCopy
impl Sync for AttachmentCopy
impl Unpin for AttachmentCopy
impl UnsafeUnpin for AttachmentCopy
impl UnwindSafe for AttachmentCopy
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