pub struct Request {
pub diagnostics: String,
pub paragraphs: Vec<String>,
pub language: Option<String>,
pub project: String,
pub settings: Map<String, Value>,
pub locale: Option<String>,
}Fields§
§diagnostics: StringWhich of the manifest’s [[diagnostics]] checks to run.
paragraphs: Vec<String>Plain text, without markdown.
language: Option<String>The project’s BCP 47 tag, or none.
project: StringThe name of the project the text belongs to, for operations such as entry.list.
settings: Map<String, Value>The plugin’s declared settings, every key present.
locale: Option<String>The UI’s BCP 47 tag, for messages in the user’s language; not Request::language, the text’s.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Request
impl<'de> Deserialize<'de> for Request
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 Forget for Request
impl Freeze for Request
impl Move for Request
impl RefUnwindSafe for Request
impl Send for Request
impl Sync for Request
impl Unpin for Request
impl UnsafeUnpin for Request
impl UnwindSafe for Request
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