pub struct ModuleAnnotations {
pub readonly: bool,
pub destructive: bool,
pub idempotent: bool,
pub requires_approval: bool,
pub open_world: bool,
pub streaming: bool,
pub cacheable: bool,
pub cache_ttl: u64,
pub cache_key_fields: Option<Vec<String>>,
pub paginated: bool,
pub pagination_style: String,
}Expand description
Metadata annotations attached to a module. Describes behavioral characteristics of the module.
Fields§
§readonly: bool§destructive: bool§idempotent: bool§requires_approval: bool§open_world: bool§streaming: bool§cacheable: bool§cache_ttl: u64§cache_key_fields: Option<Vec<String>>§paginated: bool§pagination_style: StringTrait Implementations§
Source§impl Clone for ModuleAnnotations
impl Clone for ModuleAnnotations
Source§fn clone(&self) -> ModuleAnnotations
fn clone(&self) -> ModuleAnnotations
Returns a duplicate 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 ModuleAnnotations
impl Debug for ModuleAnnotations
Source§impl Default for ModuleAnnotations
impl Default for ModuleAnnotations
Source§fn default() -> ModuleAnnotations
fn default() -> ModuleAnnotations
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ModuleAnnotations
impl<'de> Deserialize<'de> for ModuleAnnotations
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<ModuleAnnotations, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<ModuleAnnotations, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Serialize for ModuleAnnotations
impl Serialize for ModuleAnnotations
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
Auto Trait Implementations§
impl Freeze for ModuleAnnotations
impl RefUnwindSafe for ModuleAnnotations
impl Send for ModuleAnnotations
impl Sync for ModuleAnnotations
impl Unpin for ModuleAnnotations
impl UnsafeUnpin for ModuleAnnotations
impl UnwindSafe for ModuleAnnotations
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