pub struct PolicyBuilder { /* private fields */ }
Expand description

Builder for Policy.

Implementations§

The version of the policy. Currently allowed values are 2008-10-17 and 2012-10-17. Features such as policy variables are only available with version 2012-10-17 (or later, should a newer version be published). If omitted, this is equivalent to 2008-10-17.

An optional identifier for the policy. Some services may require this element and have uniqueness requirements.

One or more statements describing the policy. Aspen allows single statements to be encoded directly as a map instead of being enclosed in a list.

Builds a new Policy.

Errors

If a required field has not been initialized.

Trait Implementations§

Returns a copy of the value. Read more
Performs copy-assignment from source. Read more
Returns the “default value” for a type. Read more
The value produced by this visitor.
Format a message stating what data this Visitor expects to receive. Read more
The input contains a key-value map. Read more
The input contains a boolean. Read more
The input contains an i8. Read more
The input contains an i16. Read more
The input contains an i32. Read more
The input contains an i64. Read more
The input contains a i128. Read more
The input contains a u8. Read more
The input contains a u16. Read more
The input contains a u32. Read more
The input contains a u64. Read more
The input contains a u128. Read more
The input contains an f32. Read more
The input contains an f64. Read more
The input contains a char. Read more
The input contains a string. The lifetime of the string is ephemeral and it may be destroyed after this method returns. Read more
The input contains a string that lives at least as long as the Deserializer. Read more
The input contains a string and ownership of the string is being given to the Visitor. Read more
The input contains a byte array. The lifetime of the byte array is ephemeral and it may be destroyed after this method returns. Read more
The input contains a byte array that lives at least as long as the Deserializer. Read more
The input contains a byte array and ownership of the byte array is being given to the Visitor. Read more
The input contains an optional that is absent. Read more
The input contains an optional that is present. Read more
The input contains a unit (). Read more
The input contains a newtype struct. Read more
The input contains a sequence of elements. Read more
The input contains an enum. Read more

Auto Trait Implementations§

Blanket Implementations§

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more
Format an explanation of what data was being expected. Same signature as the Display and Debug traits.

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.