pub struct ReadAppFileParams {
pub directory: Option<AppDir>,
pub path: String,
pub max_bytes: Option<usize>,
pub binary: Option<bool>,
}Expand description
Parameters for the read_app_file tool.
Fields§
§directory: Option<AppDir>Which app directory the file is relative to. Default: data.
path: StringFile path relative to the chosen directory (e.g. “settings.json”, “databases/app.db”).
max_bytes: Option<usize>Maximum number of bytes to read. Default: 1MB. Set lower for large files.
binary: Option<bool>If true, return raw base64-encoded bytes instead of UTF-8 text.
Trait Implementations§
Source§impl Debug for ReadAppFileParams
impl Debug for ReadAppFileParams
Source§impl<'de> Deserialize<'de> for ReadAppFileParams
impl<'de> Deserialize<'de> for ReadAppFileParams
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 JsonSchema for ReadAppFileParams
impl JsonSchema for ReadAppFileParams
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreAuto Trait Implementations§
impl Freeze for ReadAppFileParams
impl RefUnwindSafe for ReadAppFileParams
impl Send for ReadAppFileParams
impl Sync for ReadAppFileParams
impl Unpin for ReadAppFileParams
impl UnsafeUnpin for ReadAppFileParams
impl UnwindSafe for ReadAppFileParams
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