Struct brane_cfg::backend::BackendFile
source · pub struct BackendFile {
pub capabilities: Option<HashSet<Capability>>,
pub hash_containers: Option<bool>,
pub method: Credentials,
}
Expand description
Defines a file that describes how a job service may connect to its backend.
Note that this struct is designed to act as a “handle”; i.e., keep it only around when using it but otherwise refer to it only by path.
Fields§
§capabilities: Option<HashSet<Capability>>
The capabilities advertised by this domain.
hash_containers: Option<bool>
Can be specified to disable container hash checking.
method: Credentials
The method of connecting
Implementations§
source§impl BackendFile
impl BackendFile
sourcepub fn hash_containers(&self) -> bool
pub fn hash_containers(&self) -> bool
Returns whether the user wants hash containers to be hashed, generating a default value if they didn’t specify it.
§Returns
Whether container hash security should be enabled (true) or not (false).
Trait Implementations§
source§impl Clone for BackendFile
impl Clone for BackendFile
source§fn clone(&self) -> BackendFile
fn clone(&self) -> BackendFile
Returns a copy of the value. Read more
1.0.0 · 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 BackendFile
impl Debug for BackendFile
source§impl<'de> Deserialize<'de> for BackendFile
impl<'de> Deserialize<'de> for BackendFile
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
source§impl Serialize for BackendFile
impl Serialize for BackendFile
impl<'de> YamlInfo<'de> for BackendFile
Auto Trait Implementations§
impl Freeze for BackendFile
impl RefUnwindSafe for BackendFile
impl Send for BackendFile
impl Sync for BackendFile
impl Unpin for BackendFile
impl UnwindSafe for BackendFile
Blanket Implementations§
source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<T> Info for T
impl<T> Info for T
source§fn to_string(
&self,
_pretty: bool,
) -> Result<String, InfoError<<T as Info>::Error>>
fn to_string( &self, _pretty: bool, ) -> Result<String, InfoError<<T as Info>::Error>>
Serializes this Config to a string. Read more
source§fn to_writer(
&self,
writer: impl Write,
_pretty: bool,
) -> Result<(), InfoError<<T as Info>::Error>>
fn to_writer( &self, writer: impl Write, _pretty: bool, ) -> Result<(), InfoError<<T as Info>::Error>>
Serializes this Config to a reader. Read more
source§fn from_string(raw: impl AsRef<str>) -> Result<T, InfoError<<T as Info>::Error>>
fn from_string(raw: impl AsRef<str>) -> Result<T, InfoError<<T as Info>::Error>>
Deserializes the given string to an instance of ourselves. Read more
source§fn from_reader(reader: impl Read) -> Result<T, InfoError<<T as Info>::Error>>
fn from_reader(reader: impl Read) -> Result<T, InfoError<<T as Info>::Error>>
Deserializes the contents of the given reader to an instance of ourselves. Read more
source§fn to_path(&self, path: impl AsRef<Path>) -> Result<(), InfoError<Self::Error>>
fn to_path(&self, path: impl AsRef<Path>) -> Result<(), InfoError<Self::Error>>
Serializes this Config to a file at the given path. Read more
source§fn from_path(path: impl AsRef<Path>) -> Result<Self, InfoError<Self::Error>>
fn from_path(path: impl AsRef<Path>) -> Result<Self, InfoError<Self::Error>>
Deserializes this Config from the file at the given path. Read more
source§fn from_path_async<'async_trait>(
path: impl 'async_trait + Send + AsRef<Path>,
) -> Pin<Box<dyn Future<Output = Result<Self, InfoError<Self::Error>>> + Send + 'async_trait>>where
Self: Send + 'async_trait,
fn from_path_async<'async_trait>(
path: impl 'async_trait + Send + AsRef<Path>,
) -> Pin<Box<dyn Future<Output = Result<Self, InfoError<Self::Error>>> + Send + 'async_trait>>where
Self: Send + 'async_trait,
Deserializes this Config from the file at the given path, with the reading part done asynchronously. Read more
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T
in a tonic::Request