pub enum Verb {
Crud(CrudVerb),
Action(NamedVerb),
}Variants§
Implementations§
Source§impl Verb
impl Verb
Sourcepub fn action(id: impl Into<String>) -> Self
pub fn action(id: impl Into<String>) -> Self
A named, service-defined action (e.g. “s3:PutObject”).
Sourcepub fn parse(s: &str) -> Self
pub fn parse(s: &str) -> Self
Parse a compact verb shorthand: the case-insensitive CRUD words read/create/
update/delete map to the closed action::CrudVerb arm; anything else is a
named action verb. This is the terse spelling a policy-authoring layer expands into
the verbose tagged-union JSON the wire format requires
({"type":"Crud","value":{"kind":"Read"}}), so operators and call sites can write
"read" or "ec2:DescribeInstances" instead.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Verb
impl<'de> Deserialize<'de> for Verb
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 Verb
impl JsonSchema for Verb
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 moreimpl StructuralPartialEq for Verb
Auto Trait Implementations§
impl Freeze for Verb
impl RefUnwindSafe for Verb
impl Send for Verb
impl Sync for Verb
impl Unpin for Verb
impl UnsafeUnpin for Verb
impl UnwindSafe for Verb
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