pub struct ServiceProtocolInformationBuilder { /* private fields */ }Expand description
Builder for ServiceProtocolInformation.
Implementations§
Source§impl ServiceProtocolInformationBuilder
impl ServiceProtocolInformationBuilder
Sourcepub fn name<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
pub fn name<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
The common name of the protocol, which should be the appropriate “service name” from the IANA Service Name and Transport Protocol Port Number Registry.
pub fn port_ranges<VALUE: Into<Vec<PortRange>>>( &mut self, value: VALUE, ) -> &mut Self
Sourcepub fn title<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
pub fn title<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
A human readable name for the protocol (e.g., Transport Layer Security).
Sourcepub fn uuid<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
pub fn uuid<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
A machine-oriented, globally unique identifier with cross-instance scope that can be used to reference this service protocol information elsewhere in this or other OSCAL instances. The locally defined UUID of the service protocol can be used to reference the data item locally or globally (e.g., in an imported OSCAL instance). This UUID should be assigned per-subject, which means it should be consistently used to identify the same subject across revisions of the document.
Sourcepub fn build(
&self,
) -> Result<ServiceProtocolInformation, ServiceProtocolInformationBuilderError>
pub fn build( &self, ) -> Result<ServiceProtocolInformation, ServiceProtocolInformationBuilderError>
Trait Implementations§
Source§impl Clone for ServiceProtocolInformationBuilder
impl Clone for ServiceProtocolInformationBuilder
Source§fn clone(&self) -> ServiceProtocolInformationBuilder
fn clone(&self) -> ServiceProtocolInformationBuilder
Returns a duplicate 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 moreAuto Trait Implementations§
impl Freeze for ServiceProtocolInformationBuilder
impl RefUnwindSafe for ServiceProtocolInformationBuilder
impl Send for ServiceProtocolInformationBuilder
impl Sync for ServiceProtocolInformationBuilder
impl Unpin for ServiceProtocolInformationBuilder
impl UnwindSafe for ServiceProtocolInformationBuilder
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