pub enum ParsedFunctionReference {
Function {
function: String,
},
RawResourceConstructor {
resource: String,
},
RawResourceDrop {
resource: String,
},
RawResourceMethod {
resource: String,
method: String,
},
RawResourceStaticMethod {
resource: String,
method: String,
},
IndexedResourceConstructor {
resource: String,
resource_params: Vec<String>,
},
IndexedResourceMethod {
resource: String,
resource_params: Vec<String>,
method: String,
},
IndexedResourceStaticMethod {
resource: String,
resource_params: Vec<String>,
method: String,
},
IndexedResourceDrop {
resource: String,
resource_params: Vec<String>,
},
}Variants§
Function
RawResourceConstructor
RawResourceDrop
RawResourceMethod
RawResourceStaticMethod
IndexedResourceConstructor
IndexedResourceMethod
IndexedResourceStaticMethod
IndexedResourceDrop
Implementations§
Source§impl ParsedFunctionReference
impl ParsedFunctionReference
pub fn function_name(&self) -> String
pub fn resource_method_name(&self) -> Option<String>
pub fn method_as_static(&self) -> Option<ParsedFunctionReference>
pub fn is_indexed_resource(&self) -> bool
pub fn raw_resource_params(&self) -> Option<&Vec<String>>
pub fn resource_name(&self) -> Option<&String>
pub fn resource_params( &self, types: &[AnalysedType], ) -> Result<Option<Vec<ValueAndType>>, String>
Trait Implementations§
Source§impl<'__de> BorrowDecode<'__de> for ParsedFunctionReference
impl<'__de> BorrowDecode<'__de> for ParsedFunctionReference
Source§fn borrow_decode<__D: BorrowDecoder<'__de>>(
decoder: &mut __D,
) -> Result<Self, DecodeError>
fn borrow_decode<__D: BorrowDecoder<'__de>>( decoder: &mut __D, ) -> Result<Self, DecodeError>
Attempt to decode this type with the given BorrowDecode.
Source§impl Clone for ParsedFunctionReference
impl Clone for ParsedFunctionReference
Source§fn clone(&self) -> ParsedFunctionReference
fn clone(&self) -> ParsedFunctionReference
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ParsedFunctionReference
impl Debug for ParsedFunctionReference
Source§impl Decode for ParsedFunctionReference
impl Decode for ParsedFunctionReference
Source§impl Display for ParsedFunctionReference
impl Display for ParsedFunctionReference
Source§impl Encode for ParsedFunctionReference
impl Encode for ParsedFunctionReference
Source§impl From<ParsedFunctionReference> for ParsedFunctionReference
impl From<ParsedFunctionReference> for ParsedFunctionReference
Source§fn from(value: ParsedFunctionReference) -> Self
fn from(value: ParsedFunctionReference) -> Self
Converts to this type from the input type.
Source§impl PartialEq for ParsedFunctionReference
impl PartialEq for ParsedFunctionReference
impl Eq for ParsedFunctionReference
impl StructuralPartialEq for ParsedFunctionReference
Auto Trait Implementations§
impl Freeze for ParsedFunctionReference
impl RefUnwindSafe for ParsedFunctionReference
impl Send for ParsedFunctionReference
impl Sync for ParsedFunctionReference
impl Unpin for ParsedFunctionReference
impl UnwindSafe for ParsedFunctionReference
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<T> GetSetFdFlags for T
impl<T> GetSetFdFlags for T
Source§fn get_fd_flags(&self) -> Result<FdFlags, Error>where
T: AsFilelike,
fn get_fd_flags(&self) -> Result<FdFlags, Error>where
T: AsFilelike,
Query the “status” flags for the
self file descriptor.Source§fn new_set_fd_flags(&self, fd_flags: FdFlags) -> Result<SetFdFlags<T>, Error>where
T: AsFilelike,
fn new_set_fd_flags(&self, fd_flags: FdFlags) -> Result<SetFdFlags<T>, Error>where
T: AsFilelike,
Source§fn set_fd_flags(&mut self, set_fd_flags: SetFdFlags<T>) -> Result<(), Error>where
T: AsFilelike,
fn set_fd_flags(&mut self, set_fd_flags: SetFdFlags<T>) -> Result<(), Error>where
T: AsFilelike,
Set the “status” flags for the
self file descriptor. Read moreSource§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request