pub struct ResourceLimits {
pub max_file_size: u64,
pub max_total_storage: u64,
pub max_files_per_commit: u32,
pub max_concurrent_leases: u32,
pub max_branches: u32,
pub max_ops_per_minute: u32,
pub network_access: bool,
pub hook_execution: bool,
}Expand description
Resource constraints for an agent
Fields§
§max_file_size: u64Maximum file size the agent can write (bytes, 0 = unlimited)
max_total_storage: u64Maximum total storage the agent can consume (bytes, 0 = unlimited)
max_files_per_commit: u32Maximum number of files the agent can modify per commit
max_concurrent_leases: u32Maximum number of concurrent leases
max_branches: u32Maximum branch count the agent can own
max_ops_per_minute: u32Rate limit — max operations per minute (0 = unlimited)
network_access: boolWhether the agent can access network (fetch/push/clone)
hook_execution: boolWhether the agent can execute hooks/scripts
Trait Implementations§
Source§impl Clone for ResourceLimits
impl Clone for ResourceLimits
Source§fn clone(&self) -> ResourceLimits
fn clone(&self) -> ResourceLimits
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 ResourceLimits
impl Debug for ResourceLimits
Source§impl Default for ResourceLimits
impl Default for ResourceLimits
Source§impl<'de> Deserialize<'de> for ResourceLimits
impl<'de> Deserialize<'de> for ResourceLimits
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for ResourceLimits
impl RefUnwindSafe for ResourceLimits
impl Send for ResourceLimits
impl Sync for ResourceLimits
impl Unpin for ResourceLimits
impl UnsafeUnpin for ResourceLimits
impl UnwindSafe for ResourceLimits
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