pub struct Policy {
pub version: Versions,
pub statement: Vec<StatementBlock>,
}Expand description
权限策略。
更多信息请参考 阿里云官方文档。
Fields§
§version: Versions§statement: Vec<StatementBlock>Implementations§
Source§impl Policy
impl Policy
Sourcepub fn v1<I>(stmts: I) -> Policywhere
I: IntoIterator<Item = StatementBlock>,
pub fn v1<I>(stmts: I) -> Policywhere
I: IntoIterator<Item = StatementBlock>,
使用 Version1 创建一个 Policy。
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Policy
impl RefUnwindSafe for Policy
impl Send for Policy
impl Sync for Policy
impl Unpin for Policy
impl UnwindSafe for Policy
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