pub struct ChatAttachConfig {
pub max_bytes: u64,
pub outbox: PathBuf,
pub denied: Vec<PathBuf>,
pub allowed: Vec<PathBuf>,
}Expand description
Where chat_attach may read from, and where its copies go.
Fields§
§max_bytes: u64Largest file accepted.
outbox: PathBufPrivate directory the checked copies are written to.
denied: Vec<PathBuf>Refused, with everything beneath them.
allowed: Vec<PathBuf>Allowed even beneath a denied path, such as the media chat users sent, which lives in the SCV instance.
Implementations§
Source§impl ChatAttachConfig
impl ChatAttachConfig
Sourcepub fn standard(
home: Option<&Path>,
scv_home: &Path,
outbox: PathBuf,
allowed: Vec<PathBuf>,
max_bytes: u64,
) -> Self
pub fn standard( home: Option<&Path>, scv_home: &Path, outbox: PathBuf, allowed: Vec<PathBuf>, max_bytes: u64, ) -> Self
The standard rule: the SCV instance scv_home (its settings,
credentials, agent homes, and state) except allowed, the credential
and key locations under home, and host secrets.
Trait Implementations§
Source§impl Clone for ChatAttachConfig
impl Clone for ChatAttachConfig
Auto Trait Implementations§
impl Freeze for ChatAttachConfig
impl RefUnwindSafe for ChatAttachConfig
impl Send for ChatAttachConfig
impl Sync for ChatAttachConfig
impl Unpin for ChatAttachConfig
impl UnsafeUnpin for ChatAttachConfig
impl UnwindSafe for ChatAttachConfig
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