pub struct CreateExternalLocationRequest {
pub name: String,
pub url: String,
pub credential_name: String,
pub read_only: Option<bool>,
pub comment: Option<String>,
pub skip_validation: Option<bool>,
}Expand description
Create a new external location
Fields§
§name: StringName of external location.
url: StringPath URL of the external location.
credential_name: StringName of the storage credential used with this location.
read_only: Option<bool>Indicates whether the external location is read-only.
comment: Option<String>User-provided free-form text description.
skip_validation: Option<bool>Skips validation of the storage credential associated with the external location.
Implementations§
Source§impl CreateExternalLocationRequest
impl CreateExternalLocationRequest
Sourcepub fn read_only(&self) -> bool
pub fn read_only(&self) -> bool
Returns the value of read_only, or the default value if read_only is unset.
Sourcepub fn comment(&self) -> &str
pub fn comment(&self) -> &str
Returns the value of comment, or the default value if comment is unset.
Sourcepub fn skip_validation(&self) -> bool
pub fn skip_validation(&self) -> bool
Returns the value of skip_validation, or the default value if skip_validation is unset.
Trait Implementations§
Source§impl Clone for CreateExternalLocationRequest
impl Clone for CreateExternalLocationRequest
Source§fn clone(&self) -> CreateExternalLocationRequest
fn clone(&self) -> CreateExternalLocationRequest
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 more§impl<'de> Deserialize<'de> for CreateExternalLocationRequest
impl<'de> Deserialize<'de> for CreateExternalLocationRequest
§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
impl Eq for CreateExternalLocationRequest
Source§impl Hash for CreateExternalLocationRequest
impl Hash for CreateExternalLocationRequest
Source§impl Message for CreateExternalLocationRequest
impl Message for CreateExternalLocationRequest
Source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
Returns the encoded length of the message without a length delimiter.
Source§fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
Encodes the message to a buffer. Read more
Source§fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Encodes the message to a newly allocated buffer.
Source§fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
Encodes the message with a length-delimiter to a buffer. Read more
Source§fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Encodes the message with a length-delimiter to a newly allocated buffer.
Source§fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Decodes an instance of the message from a buffer. Read more
Source§fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Decodes a length-delimited instance of the message from the buffer.
Source§fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
Decodes an instance of the message from a buffer, and merges it into
self. Read moreSource§fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
Decodes a length-delimited instance of the message from buffer, and
merges it into
self.§impl Serialize for CreateExternalLocationRequest
impl Serialize for CreateExternalLocationRequest
impl StructuralPartialEq for CreateExternalLocationRequest
Auto Trait Implementations§
impl Freeze for CreateExternalLocationRequest
impl RefUnwindSafe for CreateExternalLocationRequest
impl Send for CreateExternalLocationRequest
impl Sync for CreateExternalLocationRequest
impl Unpin for CreateExternalLocationRequest
impl UnsafeUnpin for CreateExternalLocationRequest
impl UnwindSafe for CreateExternalLocationRequest
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