pub struct Procedure {
pub name: String,
pub kind: ProcedureKind,
pub input: Option<RustType>,
pub output: Option<RustType>,
pub source_file: PathBuf,
pub docs: Option<String>,
pub timeout_ms: Option<u64>,
pub idempotent: bool,
}Expand description
Metadata for a single RPC procedure extracted from a source file.
Fields§
§name: StringProcedure name derived from the function name
kind: ProcedureKindQuery or Mutation
input: Option<RustType>Input parameter type; None means no input (unit type)
output: Option<RustType>Return type; None means unit return
source_file: PathBufSource file this procedure was extracted from
docs: Option<String>Doc comment extracted from /// lines
timeout_ms: Option<u64>Per-procedure timeout in milliseconds (from timeout = "..." attribute)
idempotent: boolWhether this mutation is marked as idempotent (safe to retry)
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Procedure
impl<'de> Deserialize<'de> for Procedure
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 Procedure
impl RefUnwindSafe for Procedure
impl Send for Procedure
impl Sync for Procedure
impl Unpin for Procedure
impl UnsafeUnpin for Procedure
impl UnwindSafe for Procedure
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