pub struct Policies {
pub id_version: usize,
pub max_depth: usize,
pub manifest: ManifestPolicy,
pub sha256: ShaPolicy,
pub large_asset_bytes: u64,
pub deep_tree_warn: usize,
}Expand description
校验策略(仅 root)。
Fields§
§id_version: usizeUUID 版本要求。
max_depth: usize分支树最大深度。
manifest: ManifestPolicy清单策略。
sha256: ShaPolicy指纹策略。
large_asset_bytes: u64大文件告警阈值。
deep_tree_warn: usize深树告警阈值。
Trait Implementations§
impl Eq for Policies
impl StructuralPartialEq for Policies
Auto Trait Implementations§
impl Freeze for Policies
impl RefUnwindSafe for Policies
impl Send for Policies
impl Sync for Policies
impl Unpin for Policies
impl UnsafeUnpin for Policies
impl UnwindSafe for Policies
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.