pub struct ImportPolicy {
pub max_bytes: usize,
pub max_records: usize,
pub max_events_per_record: usize,
pub allow_own_origin: bool,
pub trusted_origins: Option<BTreeSet<Origin>>,
}Expand description
Rules for accepting a bundle from elsewhere.
Fields§
§max_bytes: usize§max_records: usize§max_events_per_record: usize§allow_own_origin: boolAccept records minted by the importing store’s own origin (e.g. restoring a backup). Off by default: a remote party must not be able to inject records that look locally authored.
trusted_origins: Option<BTreeSet<Origin>>If set, only records from these origins are accepted.
Trait Implementations§
Source§impl Clone for ImportPolicy
impl Clone for ImportPolicy
Source§fn clone(&self) -> ImportPolicy
fn clone(&self) -> ImportPolicy
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ImportPolicy
impl Debug for ImportPolicy
Auto Trait Implementations§
impl Freeze for ImportPolicy
impl RefUnwindSafe for ImportPolicy
impl Send for ImportPolicy
impl Sync for ImportPolicy
impl Unpin for ImportPolicy
impl UnsafeUnpin for ImportPolicy
impl UnwindSafe for ImportPolicy
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