Struct cedar_policy_cli::EvaluateArgs
source · pub struct EvaluateArgs {
pub request: RequestArgs,
pub schema_file: Option<String>,
pub entities_file: Option<String>,
pub expression: String,
}Fields§
§request: RequestArgsRequest args (incorporated by reference)
schema_file: Option<String>File containing schema information Used to populate the store with action entities and for schema-based parsing of entity hierarchy, if present
entities_file: Option<String>File containing JSON representation of the Cedar entity hierarchy. This is optional; if not present, we’ll just use an empty hierarchy.
expression: StringExpression to evaluate
Trait Implementations§
source§impl Args for EvaluateArgs
impl Args for EvaluateArgs
source§fn group_id() -> Option<Id>
fn group_id() -> Option<Id>
Report the [
ArgGroup::id][crate::ArgGroup::id] for this set of argumentssource§fn augment_args<'b>(__clap_app: Command) -> Command
fn augment_args<'b>(__clap_app: Command) -> Command
source§fn augment_args_for_update<'b>(__clap_app: Command) -> Command
fn augment_args_for_update<'b>(__clap_app: Command) -> Command
source§impl Debug for EvaluateArgs
impl Debug for EvaluateArgs
source§impl FromArgMatches for EvaluateArgs
impl FromArgMatches for EvaluateArgs
source§fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>
fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>
source§fn from_arg_matches_mut(
__clap_arg_matches: &mut ArgMatches
) -> Result<Self, Error>
fn from_arg_matches_mut( __clap_arg_matches: &mut ArgMatches ) -> Result<Self, Error>
source§fn update_from_arg_matches(
&mut self,
__clap_arg_matches: &ArgMatches
) -> Result<(), Error>
fn update_from_arg_matches( &mut self, __clap_arg_matches: &ArgMatches ) -> Result<(), Error>
Assign values from
ArgMatches to self.source§fn update_from_arg_matches_mut(
&mut self,
__clap_arg_matches: &mut ArgMatches
) -> Result<(), Error>
fn update_from_arg_matches_mut( &mut self, __clap_arg_matches: &mut ArgMatches ) -> Result<(), Error>
Assign values from
ArgMatches to self.Auto Trait Implementations§
impl RefUnwindSafe for EvaluateArgs
impl Send for EvaluateArgs
impl Sync for EvaluateArgs
impl Unpin for EvaluateArgs
impl UnwindSafe for EvaluateArgs
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