pub struct FunctionNames {
pub exposed_as: Option<String>,
pub roles: Vec<String>,
}Expand description
What metadata says about one function, beyond what the catalogue knows.
Fields§
§exposed_as: Option<String>The root this function is exposed on: query or mutation.
roles: Vec<String>The roles a function permission names.
Hasura infers a query function’s permission from the select
permission on the table it returns – a role that may read the rows may
ask the function for them. A function exposed as a mutation is not
inferred from anything: it has side effects, and a permission to read a
table is not a permission to change it, so the role has to be named by
a pg_create_function_permission.
Trait Implementations§
Source§impl Clone for FunctionNames
impl Clone for FunctionNames
Source§fn clone(&self) -> FunctionNames
fn clone(&self) -> FunctionNames
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 FunctionNames
impl Debug for FunctionNames
Source§impl Default for FunctionNames
impl Default for FunctionNames
Source§fn default() -> FunctionNames
fn default() -> FunctionNames
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for FunctionNames
impl<'de> Deserialize<'de> for FunctionNames
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 PartialEq for FunctionNames
impl PartialEq for FunctionNames
Source§impl Serialize for FunctionNames
impl Serialize for FunctionNames
impl StructuralPartialEq for FunctionNames
Auto Trait Implementations§
impl Freeze for FunctionNames
impl RefUnwindSafe for FunctionNames
impl Send for FunctionNames
impl Sync for FunctionNames
impl Unpin for FunctionNames
impl UnsafeUnpin for FunctionNames
impl UnwindSafe for FunctionNames
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,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
impl<A, B, T> HttpServerConnExec<A, B> for Twhere
B: Body,
Source§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 more